Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c7e4642 authored by Daniel Huang's avatar Daniel Huang Committed by Android (Google) Code Review
Browse files

Merge "[Region picker] Add new flag to SettingsProvider" into main

parents f0ba2b29 2c176e7f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -6373,6 +6373,14 @@ public final class Settings {
         */
        public static final String LOCALE_PREFERENCES = "locale_preferences";
        /**
         * User can change the region from region settings. This records user's preferred region.
         *
         * E.g. : if user's locale is en-US, this will record US
         * @hide
         */
        public static final String PREFERRED_REGION = "preferred_region";
        /**
         * Setting to enable camera flash notification feature.
         * <ul>
@@ -6547,6 +6555,7 @@ public final class Settings {
            PRIVATE_SETTINGS.add(DEFAULT_DEVICE_FONT_SCALE);
            PRIVATE_SETTINGS.add(MOUSE_REVERSE_VERTICAL_SCROLLING);
            PRIVATE_SETTINGS.add(MOUSE_SWAP_PRIMARY_BUTTON);
            PRIVATE_SETTINGS.add(PREFERRED_REGION);
        }
        /**
+2 −1
Original line number Diff line number Diff line
@@ -119,7 +119,8 @@ public class SystemSettings {
                Settings.System.SCREEN_FLASH_NOTIFICATION_COLOR,
                Settings.System.NOTIFICATION_COOLDOWN_ENABLED,
                Settings.System.NOTIFICATION_COOLDOWN_ALL,
                Settings.System.NOTIFICATION_COOLDOWN_VIBRATE_UNLOCKED
                Settings.System.NOTIFICATION_COOLDOWN_VIBRATE_UNLOCKED,
                Settings.System.PREFERRED_REGION
        ));
        if (Flags.backUpSmoothDisplayAndForcePeakRefreshRate()) {
            settings.add(Settings.System.PEAK_REFRESH_RATE);
+1 −0
Original line number Diff line number Diff line
@@ -265,5 +265,6 @@ public class SystemSettingsValidators {
        VALIDATORS.put(System.NOTIFICATION_COOLDOWN_ENABLED, BOOLEAN_VALIDATOR);
        VALIDATORS.put(System.NOTIFICATION_COOLDOWN_ALL, BOOLEAN_VALIDATOR);
        VALIDATORS.put(System.NOTIFICATION_COOLDOWN_VIBRATE_UNLOCKED, BOOLEAN_VALIDATOR);
        VALIDATORS.put(System.PREFERRED_REGION, ANY_STRING_VALIDATOR);
    }
}