From 36b6a6aee6f06eba755b38d95cf02d7d6169d052 Mon Sep 17 00:00:00 2001 From: Andries Smit Date: Thu, 3 Feb 2022 13:01:14 +0100 Subject: [PATCH] fix strip duplicate spacing from smb debug script --- .../aps/openAPSAMA/OpenAPSAMAFragment.kt | 2 +- .../aps/openAPSSMB/OpenAPSSMBFragment.kt | 2 +- .../main/res/layout/openapsama_fragment.xml | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/aps/openAPSAMA/OpenAPSAMAFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/aps/openAPSAMA/OpenAPSAMAFragment.kt index 7184302bea..14deed2bb4 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/aps/openAPSAMA/OpenAPSAMAFragment.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/aps/openAPSAMA/OpenAPSAMAFragment.kt @@ -110,7 +110,7 @@ class OpenAPSAMAFragment : DaggerFragment() { binding.profile.text = jsonFormatter.format(determineBasalAdapterAMAJS.profileParam) binding.mealdata.text = jsonFormatter.format(determineBasalAdapterAMAJS.mealDataParam) - binding.scriptdebugdata.text = determineBasalAdapterAMAJS.scriptDebug + binding.scriptdebugdata.text = determineBasalAdapterAMAJS.scriptDebug.replace("\\s+".toRegex(), " ") } if (openAPSAMAPlugin.lastAPSRun != 0L) { binding.lastrun.text = dateUtil.dateAndTimeString(openAPSAMAPlugin.lastAPSRun) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/aps/openAPSSMB/OpenAPSSMBFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/aps/openAPSSMB/OpenAPSSMBFragment.kt index 647f60ef04..b93170d2ac 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/aps/openAPSSMB/OpenAPSSMBFragment.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/aps/openAPSSMB/OpenAPSSMBFragment.kt @@ -110,7 +110,7 @@ class OpenAPSSMBFragment : DaggerFragment() { binding.profile.text = jsonFormatter.format(determineBasalAdapterSMBJS.profileParam) binding.mealdata.text = jsonFormatter.format(determineBasalAdapterSMBJS.mealDataParam) - binding.scriptdebugdata.text = determineBasalAdapterSMBJS.scriptDebug + binding.scriptdebugdata.text = determineBasalAdapterSMBJS.scriptDebug.replace("\\s+".toRegex(), " ") openAPSSMBPlugin.lastAPSResult?.inputConstraints?.let { binding.constraints.text = it.getReasons(aapsLogger) } diff --git a/app/src/main/res/layout/openapsama_fragment.xml b/app/src/main/res/layout/openapsama_fragment.xml index fe51a4f18b..6b557f4803 100644 --- a/app/src/main/res/layout/openapsama_fragment.xml +++ b/app/src/main/res/layout/openapsama_fragment.xml @@ -86,6 +86,15 @@ + + + +