Add prefernces.json changes 2

This commit is contained in:
LadyViktoria 2017-02-09 10:41:02 +01:00
parent 886c1ea359
commit 7fc6de17c1
2 changed files with 2 additions and 5 deletions

View file

@ -30,7 +30,6 @@ public class PreferencesActivity extends PreferenceActivity implements SharedPre
myPreferenceFragment = new MyPreferenceFragment(); myPreferenceFragment = new MyPreferenceFragment();
getFragmentManager().beginTransaction().replace(android.R.id.content, myPreferenceFragment).commit(); getFragmentManager().beginTransaction().replace(android.R.id.content, myPreferenceFragment).commit();
PreferenceManager.getDefaultSharedPreferences(this).registerOnSharedPreferenceChangeListener(this); PreferenceManager.getDefaultSharedPreferences(this).registerOnSharedPreferenceChangeListener(this);
} }
@Override @Override
@ -46,9 +45,7 @@ public class PreferencesActivity extends PreferenceActivity implements SharedPre
MainApp.bus().post(new EventRefreshGui(true)); MainApp.bus().post(new EventRefreshGui(true));
} }
updatePrefSummary(myPreferenceFragment.getPreference(key)); updatePrefSummary(myPreferenceFragment.getPreference(key));
}
}
private static void updatePrefSummary(Preference pref) { private static void updatePrefSummary(Preference pref) {
if (pref instanceof ListPreference || pref instanceof BluetoothDevicePreference) { if (pref instanceof ListPreference || pref instanceof BluetoothDevicePreference) {

View file

@ -267,7 +267,7 @@
<string name="danarprofile">DanaR profile settings</string> <string name="danarprofile">DanaR profile settings</string>
<string name="danarprofile_dia">DIA [h]</string> <string name="danarprofile_dia">DIA [h]</string>
<string name="danarprofile_dia_summary">Duration of Insulin Activity</string> <string name="danarprofile_dia_summary">Duration of Insulin Activity</string>
<string name="danarprofile_car">Carbs absorption rate</string> <string name="failedupdatebasalprofile">Failed to update basal profile</string>
<string name="danar_history">History</string> <string name="danar_history">History</string>
<string name="danar_historyreload">Reload</string> <string name="danar_historyreload">Reload</string>
<string name="uploading">Uploading</string> <string name="uploading">Uploading</string>