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
1 changed files with 3 additions and 6 deletions

View File

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