From 180d9327b627e95c26defe541e4222a3a699c671 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 4 Dec 2022 15:22:37 +0100 Subject: [PATCH] Wizard: fix notes field --- .../main/src/main/res/xml/pref_overview.xml | 50 +++++++++---------- .../nightscout/ui/dialogs/WizardDialog.kt | 2 +- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/plugins/main/src/main/res/xml/pref_overview.xml b/plugins/main/src/main/res/xml/pref_overview.xml index f12a51150d..4e8498cf49 100644 --- a/plugins/main/src/main/res/xml/pref_overview.xml +++ b/plugins/main/src/main/res/xml/pref_overview.xml @@ -469,41 +469,41 @@ + + + + + + - - - - - - diff --git a/ui/src/main/java/info/nightscout/ui/dialogs/WizardDialog.kt b/ui/src/main/java/info/nightscout/ui/dialogs/WizardDialog.kt index 421c9b13fe..278a14f35d 100644 --- a/ui/src/main/java/info/nightscout/ui/dialogs/WizardDialog.kt +++ b/ui/src/main/java/info/nightscout/ui/dialogs/WizardDialog.kt @@ -129,7 +129,7 @@ class WizardDialog : DaggerDialogFragment() { override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View { this.arguments?.let { bundle -> carbsPassedIntoWizard = bundle.getDouble("carbs_input") - notesPassedIntoWizard = bundle.getString("notes_input").toString() + notesPassedIntoWizard = bundle.getString("notes_input") ?: "" } dialog?.window?.requestFeature(Window.FEATURE_NO_TITLE)