From 4398873c087a968312a521499c1aadfdd45bad9a Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 27 Nov 2022 09:03:47 +0100 Subject: [PATCH] Inverse display name and acct for art --- .../java/app/fedilab/android/ui/drawer/StatusAdapter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 755047c9f..c583b75c6 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 @@ -2295,11 +2295,11 @@ public class StatusAdapter extends RecyclerView.Adapter .apply(new RequestOptions().transform(new RoundedCorners((int) Helper.convertDpToPixel(3, context)))) .into(holder.bindingArt.artMedia); } - holder.bindingArt.artAcct.setText( + holder.bindingArt.artUsername.setText( status.account.getSpanDisplayName(context, - new WeakReference<>(holder.bindingArt.artAcct)), + new WeakReference<>(holder.bindingArt.artUsername)), TextView.BufferType.SPANNABLE); - holder.bindingArt.artUsername.setText(String.format(Locale.getDefault(), "@%s", status.account.acct)); + holder.bindingArt.artAcct.setText(String.format(Locale.getDefault(), "@%s", status.account.acct)); holder.bindingArt.artPp.setOnClickListener(v -> { Intent intent = new Intent(context, ProfileActivity.class); Bundle b = new Bundle();