summaryrefslogtreecommitdiffhomepage
path: root/android/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'android/src/main')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/ui/WireguardKeyFragment.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/WireguardKeyFragment.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/WireguardKeyFragment.kt
index e011a53d99..65f5daf018 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/WireguardKeyFragment.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/WireguardKeyFragment.kt
@@ -44,7 +44,7 @@ class WireguardKeyFragment : ServiceDependentFragment(OnNoService.GoToLaunchScre
field = value
updateKeyInformation()
updateStatus()
- updateButtons()
+ updateActionButtons()
}
}
@@ -62,7 +62,8 @@ class WireguardKeyFragment : ServiceDependentFragment(OnNoService.GoToLaunchScre
if (field != value) {
field = value
updateStatus()
- updateButtons()
+ updateActionButtons()
+ manageKeysButton.setEnabled(value)
}
}
@@ -237,12 +238,11 @@ class WireguardKeyFragment : ServiceDependentFragment(OnNoService.GoToLaunchScre
}
}
- private fun updateButtons() {
+ private fun updateActionButtons() {
val isIdle = actionState is ActionState.Idle
generateKeyButton.setEnabled(isIdle && hasConnectivity)
verifyKeyButton.setEnabled(isIdle && hasConnectivity)
- manageKeysButton.setEnabled(hasConnectivity)
}
private fun setStatusMessage(message: Int, color: Int) {