show the deactive button if ltk!=null
This commit is contained in:
parent
9d1267e90d
commit
953c900e28
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ class DashPodManagementActivity : NoSplashAppCompatActivity() {
|
||||||
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)
|
||||||
binding.buttonDeactivatePod.isEnabled = podStateManager.bluetoothAddress != null
|
binding.buttonDeactivatePod.isEnabled = podStateManager.bluetoothAddress != null || podStateManager.ltk != null
|
||||||
|
|
||||||
if (podStateManager.activationProgress.isAtLeast(ActivationProgress.PHASE_1_COMPLETED)) {
|
if (podStateManager.activationProgress.isAtLeast(ActivationProgress.PHASE_1_COMPLETED)) {
|
||||||
if (commandQueue.isCustomCommandInQueue(CommandPlayTestBeep::class.java)) {
|
if (commandQueue.isCustomCommandInQueue(CommandPlayTestBeep::class.java)) {
|
||||||
|
|
Loading…
Reference in a new issue