From a85a0b7d781a8233adb31302c74110758c75aedb Mon Sep 17 00:00:00 2001 From: sk Date: Sun, 27 Aug 2023 13:38:33 +0200 Subject: [PATCH] don't show blocked_by status restoring fix for sk22#526 --- .../main/java/org/joinmastodon/android/ui/utils/UiUtils.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java b/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java index bc508e2d0..eae6682ef 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java @@ -747,9 +747,6 @@ public class UiUtils { if(relationship.blocking){ button.setText(R.string.button_blocked); styleRes=R.style.Widget_Mastodon_M3_Button_Tonal_Error; - }else if(relationship.blockedBy){ - button.setText(R.string.button_follow); - styleRes=R.style.Widget_Mastodon_M3_Button_Filled; }else if(relationship.requested){ button.setText(R.string.button_follow_pending); styleRes=R.style.Widget_Mastodon_M3_Button_Tonal; @@ -761,7 +758,6 @@ public class UiUtils { styleRes=R.style.Widget_Mastodon_M3_Button_Tonal; } - button.setEnabled(!relationship.blockedBy); TypedArray ta=button.getContext().obtainStyledAttributes(styleRes, new int[]{android.R.attr.background}); button.setBackground(ta.getDrawable(0)); ta.recycle();