Set default night mode to NO when dark theme is disabled
This commit is contained in:
parent
f6b17d1926
commit
850c739b2b
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user