From 7b9e5fec1e690f4d4e312df338fadbd851ecba06 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 4 Jul 2017 00:16:35 +0200 Subject: [PATCH] autosens warning --- .../java/info/nightscout/androidaps/PreferencesActivity.java | 5 +++++ app/src/main/res/values/strings.xml | 1 + 2 files changed, 6 insertions(+) diff --git a/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java b/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java index a20b97a701..4869229799 100644 --- a/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java +++ b/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java @@ -26,6 +26,8 @@ import info.nightscout.androidaps.plugins.SensitivityOref0.SensitivityOref0Plugi import info.nightscout.androidaps.plugins.Wear.WearPlugin; import info.nightscout.androidaps.plugins.XDripStatusline.StatuslinePlugin; import info.nightscout.utils.LocaleHelper; +import info.nightscout.utils.OKDialog; +import info.nightscout.utils.SP; public class PreferencesActivity extends PreferenceActivity implements SharedPreferences.OnSharedPreferenceChangeListener { MyPreferenceFragment myPreferenceFragment; @@ -50,6 +52,9 @@ public class PreferencesActivity extends PreferenceActivity implements SharedPre if (key.equals("short_tabtitles")) { MainApp.bus().post(new EventRefreshGui()); } + if (key.equals("openapsama_useautosens") && SP.getBoolean("openapsama_useautosens", false)) { + OKDialog.show(this, MainApp.sResources.getString(R.string.configbuilder_sensitivity), MainApp.sResources.getString(R.string.sensitivity_warning), null); + } updatePrefSummary(myPreferenceFragment.getPreference(key)); } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d48aa720ba..d2f7d07785 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -676,4 +676,5 @@ EXT Lock screen Lock + By turning on Autosense feature remember to enter all eated carbs. Otherwise carbs deviations will be identified wrong as sensitivity change !!