From 451dd59c2bc6183e4355b11b70ad71902783042e Mon Sep 17 00:00:00 2001 From: swissalpine Date: Fri, 22 Jan 2021 20:08:33 +0100 Subject: [PATCH] Fix: Seperate cartridge change from canula change --- .../java/info/nightscout/androidaps/dialogs/FillDialog.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/dialogs/FillDialog.kt b/app/src/main/java/info/nightscout/androidaps/dialogs/FillDialog.kt index d55a4e5944..ab44442bfe 100644 --- a/app/src/main/java/info/nightscout/androidaps/dialogs/FillDialog.kt +++ b/app/src/main/java/info/nightscout/androidaps/dialogs/FillDialog.kt @@ -111,7 +111,7 @@ class FillDialog : DialogFragmentWithDate() { val siteChange = binding.fillCatheterChange.isChecked if (siteChange) actions.add(resourceHelper.gs(R.string.record_pump_site_change).formatColor(resourceHelper, R.color.actionsConfirm)) - val insulinChange = binding.fillCatheterChange.isChecked + val insulinChange = binding.fillCartridgeChange.isChecked if (insulinChange) actions.add(resourceHelper.gs(R.string.record_insulin_cartridge_change).formatColor(resourceHelper, R.color.actionsConfirm)) val notes = binding.notesLayout.notes.text.toString() @@ -122,7 +122,7 @@ class FillDialog : DialogFragmentWithDate() { if (eventTimeChanged) actions.add(resourceHelper.gs(R.string.time) + ": " + dateUtil.dateAndTimeString(eventTime)) - if (insulinAfterConstraints > 0 || binding.fillCatheterChange.isChecked || binding.fillCatheterChange.isChecked) { + if (insulinAfterConstraints > 0 || binding.fillCatheterChange.isChecked || binding.fillCartridgeChange.isChecked) { activity?.let { activity -> OKDialog.showConfirmation(activity, resourceHelper.gs(R.string.primefill), HtmlHelper.fromHtml(Joiner.on("
").join(actions)), { if (insulinAfterConstraints > 0) {