+ SharedPreferences p = PreferenceManager.getDefaultSharedPreferences(this);
+ Data.optShowOnlyStarred.set(p.getBoolean(PREF_KEY_SHOW_ONLY_STARRED_ACCOUNTS, false));
+ SharedPreferences.OnSharedPreferenceChangeListener handler =
+ (preference, value) -> Data.optShowOnlyStarred
+ .set(preference.getBoolean(PREF_KEY_SHOW_ONLY_STARRED_ACCOUNTS, false));
+ p.registerOnSharedPreferenceChangeListener(handler);
+ }
+ private void updateMonthNames() {
+ Resources rm = getResources();
+ Globals.monthNames = rm.getStringArray(R.array.month_names);