display deactive buttong if bluetoothAddress != null
This commit is contained in:
parent
32aa3e3579
commit
462cae13b5
1 changed files with 1 additions and 3 deletions
|
@ -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