diff --git a/app/src/main/java/it/niedermann/owncloud/notes/NotesApplication.java b/app/src/main/java/it/niedermann/owncloud/notes/NotesApplication.java index 1845473a..14bcf693 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/NotesApplication.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/NotesApplication.java @@ -37,7 +37,7 @@ public class NotesApplication extends Application { public void onCreate() { PREF_KEY_THEME = getString(R.string.pref_key_theme); setAppTheme(getAppTheme(getApplicationContext())); - final var prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); + final var prefs = getDefaultSharedPreferences(getApplicationContext()); lockedPreference = prefs.getBoolean(getString(R.string.pref_key_lock), false); isGridViewEnabled = getDefaultSharedPreferences(this).getBoolean(getString(R.string.pref_key_gridview), false); super.onCreate(); @@ -59,7 +59,7 @@ public class NotesApplication extends Application { } public static DarkModeSetting getAppTheme(Context context) { - final var prefs = PreferenceManager.getDefaultSharedPreferences(context); + final var prefs = getDefaultSharedPreferences(context); String mode; try { mode = prefs.getString(PREF_KEY_THEME, DarkModeSetting.SYSTEM_DEFAULT.name());