display deactive buttong if bluetoothAddress != null
This commit is contained in:
parent
32aa3e3579
commit
462cae13b5
|
@ -124,9 +124,7 @@ class DashPodManagementActivity : NoSplashAppCompatActivity() {
|
|||
binding.buttonDiscardPod.visibility = discardButtonEnabled.toVisibility()
|
||||
|
||||
binding.buttonActivatePod.isEnabled = podStateManager.activationProgress.isBefore(ActivationProgress.COMPLETED)
|
||||
binding.buttonDeactivatePod.isEnabled =
|
||||
podStateManager.ltk != null ||
|
||||
podStateManager.podStatus == PodStatus.ALARM
|
||||
binding.buttonDeactivatePod.isEnabled = podStateManager.bluetoothAddress != null
|
||||
|
||||
if (podStateManager.activationProgress.isAtLeast(ActivationProgress.PHASE_1_COMPLETED)) {
|
||||
if (commandQueue.isCustomCommandInQueue(CommandPlayTestBeep::class.java)) {
|
||||
|
|
Loading…
Reference in a new issue