fixed def system theme val

This commit is contained in:
gdlbo
2022-10-03 11:45:41 +03:00
parent 4bcbaf0d7a
commit 4ca5f7d2c5
2 changed files with 4 additions and 7 deletions
@@ -115,13 +115,12 @@ public class VTSettings extends MaterialPreferenceToolbarFragment {
}
public static String getThemesumm() {
var type = getPrefsValue("currsystemtheme");
if (disableSettingsSumms()) return null;
String str = null;
String str;
switch (type) {
switch (getPrefsValue("currsystemtheme")) {
default:
case "system":
str = "Системная";
break;
@@ -133,8 +132,6 @@ public class VTSettings extends MaterialPreferenceToolbarFragment {
break;
}
if (str == null) return null;
return "Текущая тема" + ": " + str;
}
@@ -62,7 +62,7 @@ public class Preferences {
}
public static boolean systemtheme() {
return Build.VERSION.SDK_INT >= 28 && getPreferences().getString("currsystemtheme", "system").equals("system");
return Build.VERSION.SDK_INT >= 28 && (getPreferences().getString("currsystemtheme", "system").equals("system") || getPreferences().getString("currsystemtheme", "system").isEmpty());
}
public static boolean authorsrecomm() {