dash: undo the temporary discardButtonEnabled test
This commit is contained in:
parent
0c35eb7da9
commit
513007f6ae
1 changed files with 3 additions and 1 deletions
|
@ -117,7 +117,9 @@ class DashPodManagementActivity : NoSplashAppCompatActivity() {
|
||||||
// Only show the discard button to reset a cached unique ID before the unique ID has actually been set
|
// Only show the discard button to reset a cached unique ID before the unique ID has actually been set
|
||||||
// Otherwise, users should use the Deactivate Pod Wizard. In case proper deactivation fails,
|
// Otherwise, users should use the Deactivate Pod Wizard. In case proper deactivation fails,
|
||||||
// they will get an option to discard the Pod there
|
// they will get an option to discard the Pod there
|
||||||
val discardButtonEnabled = true
|
val discardButtonEnabled =
|
||||||
|
podStateManager.uniqueId != null &&
|
||||||
|
podStateManager.activationProgress.isBefore(ActivationProgress.SET_UNIQUE_ID)
|
||||||
binding.buttonDiscardPod.visibility = discardButtonEnabled.toVisibility()
|
binding.buttonDiscardPod.visibility = discardButtonEnabled.toVisibility()
|
||||||
|
|
||||||
binding.buttonActivatePod.isEnabled = podStateManager.activationProgress.isBefore(ActivationProgress.COMPLETED)
|
binding.buttonActivatePod.isEnabled = podStateManager.activationProgress.isBefore(ActivationProgress.COMPLETED)
|
||||||
|
|
Loading…
Reference in a new issue