From cab592efb526cf6a08f9a9375bae877d4bb66e0e Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 21 Apr 2018 21:31:42 +0200 Subject: [PATCH] overview preferences cleanup --- .../androidaps/PreferencesActivity.java | 3 +- app/src/main/res/xml/pref_advanced.xml | 7 - app/src/main/res/xml/pref_overview.xml | 146 ++++++++++-------- 3 files changed, 87 insertions(+), 69 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java b/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java index 52984d3697..915e1ef00d 100644 --- a/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java +++ b/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java @@ -128,7 +128,6 @@ public class PreferencesActivity extends PreferenceActivity implements SharedPre if (id != -1) { addPreferencesFromResource(id); } else { - addPreferencesFromResource(R.xml.pref_overview); if (!Config.NSCLIENT && !Config.G5UPLOADER) { addPreferencesFromResource(R.xml.pref_password); @@ -136,6 +135,8 @@ public class PreferencesActivity extends PreferenceActivity implements SharedPre addPreferencesFromResource(R.xml.pref_age); addPreferencesFromResource(R.xml.pref_language); + addPreferencesFromResource(R.xml.pref_overview); + if (!Config.NSCLIENT && !Config.G5UPLOADER) { addPreferencesFromResource(R.xml.pref_quickwizard); } diff --git a/app/src/main/res/xml/pref_advanced.xml b/app/src/main/res/xml/pref_advanced.xml index f5ab617946..1ca031a94e 100644 --- a/app/src/main/res/xml/pref_advanced.xml +++ b/app/src/main/res/xml/pref_advanced.xml @@ -5,13 +5,6 @@ android:key="advanced" android:title="@string/advancedsettings_title"> - - - + + + + + android:title="@string/overview_calculator_label" /> + - + + - + + + android:inputType="numberDecimal|numberSigned" + android:key="@string/key_insulin_button_increment_3" + android:maxLines="20" + android:selectAllOnFocus="true" + android:singleLine="true" + android:title="Third insulin increment" + validate:floatmaxNumber="5.0" + validate:floatminNumber="-5.0" + validate:testType="floatNumericRange" /> + - + + - + + + android:inputType="numberSigned" + android:key="@string/key_carbs_button_increment_3" + android:maxLines="20" + android:selectAllOnFocus="true" + android:singleLine="true" + android:title="Third carbs increment" + validate:maxNumber="50" + validate:minNumber="-50" + validate:testType="numericRange" /> + android:summary="@string/show_cgm_button_summary" + android:title="CGM" /> + + android:summary="@string/show_calibration_button_summary" + android:title="@string/overview_calibration" /> + + + + + + + + + \ No newline at end of file