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:
parent
ce3d6f2f8f
commit
47b1299ff2
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user