From 329e5af94f499185845b3bc29fbf1c0ed7d9ad79 Mon Sep 17 00:00:00 2001 From: Philoul Date: Sat, 26 Dec 2020 18:26:46 +0100 Subject: [PATCH] Update "Loop header" --- .../main/java/info/nightscout/androidaps/dialogs/LoopDialog.kt | 2 ++ app/src/main/res/layout/dialog_loop.xml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/dialogs/LoopDialog.kt b/app/src/main/java/info/nightscout/androidaps/dialogs/LoopDialog.kt index a21d96f56c..362b3047cb 100644 --- a/app/src/main/java/info/nightscout/androidaps/dialogs/LoopDialog.kt +++ b/app/src/main/java/info/nightscout/androidaps/dialogs/LoopDialog.kt @@ -110,6 +110,7 @@ class LoopDialog : DaggerDialogFragment() { if (loopPlugin.isEnabled(PluginType.LOOP)) { overview_enable?.visibility = View.GONE //sp.getBoolean(R.string.key_usesuperbolus, false).toVisibility() overview_disable?.visibility = View.VISIBLE + overview_loop_header?.text = resourceHelper.gs(R.string.disableloop) if (!loopPlugin.isSuspended) { overview_suspend_header?.text=resourceHelper.gs(R.string.suspendloop) overview_resume?.visibility = View.GONE @@ -127,6 +128,7 @@ class LoopDialog : DaggerDialogFragment() { } else { overview_enable?.visibility = View.VISIBLE overview_disable?.visibility = View.GONE + overview_loop_header?.text = resourceHelper.gs(R.string.enableloop) overview_suspend?.visibility = View.GONE } if (!loopPlugin.isDisconnected) { diff --git a/app/src/main/res/layout/dialog_loop.xml b/app/src/main/res/layout/dialog_loop.xml index 101959240d..72731c02e2 100644 --- a/app/src/main/res/layout/dialog_loop.xml +++ b/app/src/main/res/layout/dialog_loop.xml @@ -56,12 +56,13 @@ android:orientation="vertical">