Fix code style

This commit is contained in:
CappielloAntonio 2021-04-19 15:24:42 +02:00
parent ff1f4ef106
commit 99135a0e0d
7 changed files with 28 additions and 12 deletions

View file

@ -16,19 +16,14 @@ public class ThemeHelper {
public static void applyTheme(@NonNull String themePref) {
switch (themePref) {
case LIGHT_MODE: {
Log.d(TAG, "applyTheme: LIGHT");
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
break;
}
case DARK_MODE: {
Log.d(TAG, "applyTheme: DARK");
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
break;
}
default: {
Log.d(TAG, "applyTheme: SYSTEM");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM);
} else {