From 886c1ea359ad72b33b4543c8fb48134117cbd211 Mon Sep 17 00:00:00 2001 From: LadyViktoria Date: Thu, 9 Feb 2017 09:36:51 +0100 Subject: [PATCH] Add prefernces.json changes --- .../nightscout/androidaps/PreferencesActivity.java | 2 +- app/src/main/res/values/strings.xml | 1 - app/src/main/res/xml/pref_advanced.xml | 10 +++++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java b/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java index 3d5a865907..1c18288dbf 100644 --- a/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java +++ b/app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java @@ -57,7 +57,7 @@ public class PreferencesActivity extends PreferenceActivity implements SharedPre } if (pref instanceof EditTextPreference) { EditTextPreference editTextPref = (EditTextPreference) pref; - if (pref.getTitle().toString().toLowerCase().contains("password")) { + if (pref.getKey().contains("danar_password")) { pref.setSummary("******"); } else if (editTextPref.getText() != null && !editTextPref.getText().equals("")) { ((EditTextPreference) pref).setDialogMessage(editTextPref.getDialogMessage()); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 6e8c6e5a0d..3d3fec1931 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -268,7 +268,6 @@ DIA [h] Duration of Insulin Activity Carbs absorption rate - Failed to update basal profile History Reload Uploading diff --git a/app/src/main/res/xml/pref_advanced.xml b/app/src/main/res/xml/pref_advanced.xml index 8850ccbea4..0ebe02c9d1 100644 --- a/app/src/main/res/xml/pref_advanced.xml +++ b/app/src/main/res/xml/pref_advanced.xml @@ -61,8 +61,8 @@ android:key="openapsama_current_basal_safety_multiplier" />