1
0
mirror of https://github.com/tuskyapp/Tusky synced 2025-02-09 17:30:40 +01:00

Fix subscribe button state in AccountActivity (#3216)

This commit is contained in:
Konrad Pozniak 2023-01-27 19:49:07 +01:00 committed by GitHub
parent ce3d6f2f8f
commit 47b1299ff2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -577,6 +577,7 @@ class AccountActivity : BottomSheetActivity(), ActionButtonActivity, HasAndroidI
} }
} }
updateFollowButton() updateFollowButton()
updateSubscribeButton()
} }
} }
} }
@ -650,7 +651,6 @@ class AccountActivity : BottomSheetActivity(), ActionButtonActivity, HasAndroidI
binding.accountFollowButton.setText(R.string.action_unfollow) binding.accountFollowButton.setText(R.string.action_unfollow)
} }
} }
updateSubscribeButton()
} }
private fun updateMuteButton() { private fun updateMuteButton() {
@ -682,17 +682,14 @@ class AccountActivity : BottomSheetActivity(), ActionButtonActivity, HasAndroidI
binding.accountFollowButton.show() binding.accountFollowButton.show()
updateFollowButton() updateFollowButton()
updateSubscribeButton()
if (blocking) { if (blocking) {
binding.accountFloatingActionButton.hide() binding.accountFloatingActionButton.hide()
binding.accountMuteButton.hide() binding.accountMuteButton.hide()
binding.accountSubscribeButton.hide()
} else { } else {
binding.accountFloatingActionButton.show() binding.accountFloatingActionButton.show()
if (muting) binding.accountMuteButton.visible(muting)
binding.accountMuteButton.show()
else
binding.accountMuteButton.hide()
updateMuteButton() updateMuteButton()
} }
} else { } else {