From d78235cb1157ce4eb0bb2e74e79df016fc9130ad Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 6 Feb 2023 09:30:16 +0100 Subject: [PATCH] Fix issue #777 --- .../android/mastodon/ui/drawer/StatusAdapter.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java index a8ddf8567..a6e5ce332 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java +++ b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java @@ -1111,15 +1111,23 @@ public class StatusAdapter extends RecyclerView.Adapter } int ressource = R.drawable.ic_baseline_public_24; + holder.binding.visibility.setContentDescription(context.getString(R.string.v_public)); + holder.binding.visibilitySmall.setContentDescription(context.getString(R.string.v_public)); switch (status.visibility) { case "unlisted": + holder.binding.visibility.setContentDescription(context.getString(R.string.v_unlisted)); + holder.binding.visibilitySmall.setContentDescription(context.getString(R.string.v_unlisted)); ressource = R.drawable.ic_baseline_lock_open_24; break; case "private": ressource = R.drawable.ic_baseline_lock_24; + holder.binding.visibility.setContentDescription(context.getString(R.string.v_private)); + holder.binding.visibilitySmall.setContentDescription(context.getString(R.string.v_private)); break; case "direct": ressource = R.drawable.ic_baseline_mail_24; + holder.binding.visibility.setContentDescription(context.getString(R.string.v_direct)); + holder.binding.visibilitySmall.setContentDescription(context.getString(R.string.v_direct)); break; } @@ -1277,6 +1285,7 @@ public class StatusAdapter extends RecyclerView.Adapter holder.binding.actionButtonBoost.setVisibility(View.GONE); break; } + //--- MAIN CONTENT --- holder.binding.statusContent.setText( statusToDeal.getSpanContent(context,