From 2436c839dc5769b1798783001b259b198c50d459 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 13 Jul 2022 12:56:07 +0200 Subject: [PATCH] Some tries --- .../android/ui/drawer/NotificationAdapter.java | 12 +++++++----- .../app/fedilab/android/ui/drawer/StatusAdapter.java | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/NotificationAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/NotificationAdapter.java index 4cbae4f0..542f66c2 100644 --- a/app/src/main/java/app/fedilab/android/ui/drawer/NotificationAdapter.java +++ b/app/src/main/java/app/fedilab/android/ui/drawer/NotificationAdapter.java @@ -21,6 +21,8 @@ import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; +import android.text.Spannable; +import android.text.SpannableString; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -213,14 +215,14 @@ public class NotificationAdapter extends RecyclerView.Adapter 0) { if (notification.type.equals("favourite")) { @@ -269,7 +271,7 @@ public class NotificationAdapter extends RecyclerView.Adapter { + CustomEmoji.displayEmoji(context, notification.account.emojis, title, holderStatus.binding.displayName, notification.id, id -> { if (!notification.account.emojiFetched) { notification.account.emojiFetched = true; holderStatus.binding.displayName.post(() -> notifyItemChanged(position)); diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java index 631031e2..2069205f 100644 --- a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java +++ b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java @@ -572,7 +572,7 @@ public class StatusAdapter extends RecyclerView.Adapter context.startActivity(intent, options.toBundle()); } }); - holder.binding.statusBoosterAvatar.setOnClickListener(v -> { + holder.binding.statusBoosterInfo.setOnClickListener(v -> { if (remote) { Toasty.info(context, context.getString(R.string.retrieve_remote_status), Toasty.LENGTH_SHORT).show(); searchVM.search(BaseMainActivity.currentInstance, BaseMainActivity.currentToken, statusToDeal.uri, null, "statuses", false, true, false, 0, null, null, 1)