mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Unified the access keys to the preferences
This commit is contained in:
parent
bcc95f2ef0
commit
478ecdd3bb
2 changed files with 2 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ public class App extends Application {
|
|||
CrashReporter.initialize(this);
|
||||
|
||||
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
|
||||
String themePref = sharedPreferences.getString("theme", ThemeHelper.DEFAULT_MODE);
|
||||
String themePref = sharedPreferences.getString(PreferenceUtil.THEME, ThemeHelper.DEFAULT_MODE);
|
||||
ThemeHelper.applyTheme(themePref);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ public class SettingsFragment extends PreferenceFragmentCompat {
|
|||
@Override
|
||||
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
|
||||
setPreferencesFromResource(R.xml.global_preferences, rootKey);
|
||||
ListPreference themePreference = findPreference("theme");
|
||||
ListPreference themePreference = findPreference(PreferenceUtil.THEME);
|
||||
if (themePreference != null) {
|
||||
themePreference.setOnPreferenceChangeListener(
|
||||
(preference, newValue) -> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue