Migrate berry_black_theme to Secure table
AOSP theme settings live in Secure table, let's do the same Change-Id: I31eafeb940fe50cdde03e12cb3431f4f325d772b
This commit is contained in:
committed by
Bruno Martins
parent
500f74f78f
commit
938f8dfd57
@@ -1426,15 +1426,6 @@ public final class LineageSettings {
|
||||
public static final Validator PROXIMITY_ON_WAKE_VALIDATOR =
|
||||
sBooleanValidator;
|
||||
|
||||
/**
|
||||
* Whether to use black theme for dark mode
|
||||
*/
|
||||
public static final String BERRY_BLACK_THEME = "berry_black_theme";
|
||||
|
||||
/** @hide */
|
||||
public static final Validator BERRY_BLACK_THEME_VALIDATOR =
|
||||
sBooleanValidator;
|
||||
|
||||
/**
|
||||
* Color temperature of the display during the day
|
||||
*/
|
||||
@@ -2236,7 +2227,6 @@ public final class LineageSettings {
|
||||
VALIDATORS.put(BATTERY_LIGHT_FULL_COLOR, BATTERY_LIGHT_FULL_COLOR_VALIDATOR);
|
||||
VALIDATORS.put(ENABLE_MWI_NOTIFICATION, ENABLE_MWI_NOTIFICATION_VALIDATOR);
|
||||
VALIDATORS.put(PROXIMITY_ON_WAKE, PROXIMITY_ON_WAKE_VALIDATOR);
|
||||
VALIDATORS.put(BERRY_BLACK_THEME, BERRY_BLACK_THEME_VALIDATOR);
|
||||
VALIDATORS.put(DISPLAY_TEMPERATURE_DAY, DISPLAY_TEMPERATURE_DAY_VALIDATOR);
|
||||
VALIDATORS.put(DISPLAY_TEMPERATURE_NIGHT, DISPLAY_TEMPERATURE_NIGHT_VALIDATOR);
|
||||
VALIDATORS.put(DISPLAY_TEMPERATURE_MODE, DISPLAY_TEMPERATURE_MODE_VALIDATOR);
|
||||
@@ -2996,6 +2986,14 @@ public final class LineageSettings {
|
||||
|
||||
public static final Validator TETHERING_ALLOW_VPN_UPSTREAMS_VALIDATOR = sBooleanValidator;
|
||||
|
||||
/**
|
||||
* Whether to use black theme for dark mode
|
||||
* @hide
|
||||
*/
|
||||
public static final String BERRY_BLACK_THEME = "berry_black_theme";
|
||||
|
||||
/** @hide */
|
||||
public static final Validator BERRY_BLACK_THEME_VALIDATOR = sBooleanValidator;
|
||||
// endregion
|
||||
|
||||
/**
|
||||
@@ -3048,6 +3046,7 @@ public final class LineageSettings {
|
||||
public static final Map<String, Validator> VALIDATORS =
|
||||
new ArrayMap<String, Validator>();
|
||||
static {
|
||||
VALIDATORS.put(BERRY_BLACK_THEME, BERRY_BLACK_THEME_VALIDATOR);
|
||||
VALIDATORS.put(GESTURE_BACK_EXCLUDE_TOP, GESTURE_BACK_EXCLUDE_TOP_VALIDATOR);
|
||||
VALIDATORS.put(NETWORK_TRAFFIC_MODE, NETWORK_TRAFFIC_MODE_VALIDATOR);
|
||||
VALIDATORS.put(NETWORK_TRAFFIC_AUTOHIDE, NETWORK_TRAFFIC_AUTOHIDE_VALIDATOR);
|
||||
|
||||
Reference in New Issue
Block a user