mirror of
https://github.com/whyorean/AuroraStore.git
synced 2026-06-17 20:18:35 -04:00
AppLinksFragment: Update button state when link is removed
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -70,11 +70,13 @@ class AppLinksFragment : Fragment(R.layout.fragment_app_links) {
|
||||
private fun updateButtonState() {
|
||||
if (isSAndAbove()) {
|
||||
buttons.forEach { (domain, button) ->
|
||||
if (domainVerified(domain)) {
|
||||
button.apply {
|
||||
text = getString(R.string.action_enabled)
|
||||
isEnabled = false
|
||||
button.apply {
|
||||
text = if (domainVerified(domain)) {
|
||||
getString(R.string.action_enabled)
|
||||
} else {
|
||||
getString(R.string.action_enable)
|
||||
}
|
||||
isEnabled = !domainVerified(domain)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user