fixed def system theme val
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user