From 70fdfb612e9e3aad6b14c504027d03969fb73b28 Mon Sep 17 00:00:00 2001 From: sk Date: Sat, 10 Jun 2023 21:54:18 +0200 Subject: [PATCH] fix issue on re-bind --- .../ui/displayitems/ExtendedFooterStatusDisplayItem.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/ExtendedFooterStatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/ExtendedFooterStatusDisplayItem.java index 43d3a78cc..959a34625 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/ExtendedFooterStatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/ExtendedFooterStatusDisplayItem.java @@ -14,7 +14,6 @@ import android.widget.ImageView; import android.widget.TextView; import org.joinmastodon.android.R; -import org.joinmastodon.android.api.session.AccountSessionManager; import org.joinmastodon.android.fragments.BaseStatusListFragment; import org.joinmastodon.android.fragments.StatusEditHistoryFragment; import org.joinmastodon.android.fragments.account_list.StatusFavoritesListFragment; @@ -76,8 +75,7 @@ public class ExtendedFooterStatusDisplayItem extends StatusDisplayItem{ Status s=item.status; favorites.setText(context.getResources().getQuantityString(R.plurals.x_favorites, (int)(s.favouritesCount%1000), s.favouritesCount)); reblogs.setText(context.getResources().getQuantityString(R.plurals.x_reblogs, (int) (s.reblogsCount % 1000), s.reblogsCount)); - if (!s.isBoostable(item.accountID)) - reblogs.setVisibility(View.GONE); + reblogs.setVisibility(s.isReblogPermitted(item.accountID) ? View.VISIBLE : View.GONE); if(s.editedAt!=null){ editHistory.setVisibility(View.VISIBLE);