Fix code style

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

No files matched your search

@@ -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 {