diff --git a/app/src/main/java/info/nightscout/androidaps/dialogs/WizardDialog.kt b/app/src/main/java/info/nightscout/androidaps/dialogs/WizardDialog.kt index e5ff65ffda..13fc6cc0b8 100644 --- a/app/src/main/java/info/nightscout/androidaps/dialogs/WizardDialog.kt +++ b/app/src/main/java/info/nightscout/androidaps/dialogs/WizardDialog.kt @@ -130,7 +130,7 @@ class WizardDialog : DaggerDialogFragment() { val useSuperBolus = sp.getBoolean(R.string.key_usesuperbolus, false) binding.sbCheckbox.visibility = useSuperBolus.toVisibility() binding.superBolusRow.visibility = useSuperBolus.toVisibility() - binding.notesLayout.visibility = sp.getBoolean(R.string.key_show_notes_entry_dialogs, false).toVisibility() + binding.notesLayout.root.visibility = sp.getBoolean(R.string.key_show_notes_entry_dialogs, false).toVisibility() val maxCarbs = constraintChecker.getMaxCarbsAllowed().value() val maxCorrection = constraintChecker.getMaxBolusAllowed().value() @@ -327,7 +327,7 @@ class WizardDialog : DaggerDialogFragment() { binding.carbsInput.value = carbsPassedIntoWizard } if (notesPassedIntoWizard.isNotBlank()) { - binding.notes.setText(notesPassedIntoWizard) + binding.notesLayout.notes.setText(notesPassedIntoWizard) } val profile = profileFunction.getProfile() val profileStore = activePlugin.activeProfileSource.profile @@ -427,7 +427,7 @@ class WizardDialog : DaggerDialogFragment() { binding.ttCheckbox.isChecked, binding.bgTrendCheckbox.isChecked, binding.alarm.isChecked, - binding.notes.text.toString(), + binding.notesLayout.notes.text.toString(), carbTime, usePercentage = usePercentage, totalPercentage = percentageCorrection diff --git a/app/src/main/res/layout/activity_preferences.xml b/app/src/main/res/layout/activity_preferences.xml index d4a7c61fc7..2ff946628a 100644 --- a/app/src/main/res/layout/activity_preferences.xml +++ b/app/src/main/res/layout/activity_preferences.xml @@ -9,7 +9,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/filter" - android:textColorHint="?attr/colorOnPrimary" app:endIconMode="clear_text"> + android:hint="@string/profiletype"> + android:hint="@string/selected_profile"> + android:hint="@string/careportal_profileswitch"> - - - - - - - + layout="@layout/notes" /> diff --git a/core/src/main/res/layout/notes.xml b/core/src/main/res/layout/notes.xml index 9ee27909a4..96adb89ff0 100644 --- a/core/src/main/res/layout/notes.xml +++ b/core/src/main/res/layout/notes.xml @@ -1,35 +1,32 @@ - - + android:orientation="horizontal"> - + android:hint="@string/notes_label" + app:endIconMode="clear_text"> - + + +