display deactive buttong if bluetoothAddress != null

This commit is contained in:
Andrei Vereha 2021-09-23 09:49:53 +02:00
parent 32aa3e3579
commit 462cae13b5

View file

@ -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)) {