Loop Dialog, hide loop buttons if pump disconnected or loop suspended

This commit is contained in:
Philoul 2021-04-23 00:31:40 +02:00
parent 145ec376de
commit e7578b4c8f
2 changed files with 2 additions and 0 deletions

View file

@ -195,6 +195,7 @@ class LoopDialog : DaggerDialogFragment() {
binding.overviewDisconnectButtons.visibility = View.GONE
binding.overviewReconnect.visibility = View.VISIBLE
}
binding.overviewLoop.visibility = (!loopPlugin.isSuspended && !loopPlugin.isDisconnected).toVisibility()
}
val profile = profileFunction.getProfile()
val profileStore = activePlugin.activeProfileInterface.profile

View file

@ -51,6 +51,7 @@
<LinearLayout
android:id="@+id/overview_loop"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">