Set default night mode to NO when dark theme is disabled

This commit is contained in:
Shinokuni 2019-12-18 22:00:40 +01:00
parent f6b17d1926
commit 850c739b2b
1 changed files with 3 additions and 0 deletions

View File

@ -29,8 +29,11 @@ public class ReadropsApp extends Application {
}
createNotificationChannels();
if (Boolean.valueOf(SharedPreferencesManager.readString(this, SharedPreferencesManager.SharedPrefKey.DARK_THEME)))
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
else
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
}
private void createNotificationChannels() {