fixed auto theme

This commit is contained in:
gdlbo
2022-06-15 07:59:10 +03:00
parent 8e40b622f7
commit d7378e4674
4 changed files with 4 additions and 4 deletions
@@ -124,7 +124,7 @@ public class VTSettings extends MaterialPreferenceToolbarFragment {
return true;
});
if (Build.VERSION.SDK_INT >= 29) {
if (Build.VERSION.SDK_INT >= 28) {
PreferencesUtil.addMaterialSwitchPreference(this, "systemtheme", getString("appearance_theme_use_system"), getString("appearance_theme_use_system_summary"), "ic_recent_24", true, (preference, o) -> {
boolean value = (boolean) o;
@@ -80,7 +80,7 @@ public class Preferences {
}
public static boolean systemtheme() {
return getBoolValue("systemtheme", true);
return getBoolValue("systemtheme", true) && VERSION.SDK_INT >= 28;
}
public static boolean authorsrecomm() {