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

Commit 3e869587 authored by Doris Ling's avatar Doris Ling Committed by Android (Google) Code Review
Browse files

Merge "Add a secure setting for double twist gesture for camera flip." into nyc-mr1-dev

parents b2fe8040 a60d31d7
Loading
Loading
Loading
Loading
+17 −7
Original line number Diff line number Diff line
@@ -6146,6 +6146,15 @@ public final class Settings {
        public static final String CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED =
                "camera_double_tap_power_gesture_disabled";

        /**
         * Whether the camera double twist gesture to flip between front and back mode should be
         * enabled.
         *
         * @hide
         */
        public static final String CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED =
                "camera_double_twist_to_flip_enabled";

        /**
         * Control whether Night display is currently activated.
         * @hide
@@ -6300,6 +6309,14 @@ public final class Settings {
                "automatic_storage_manager_last_run";


        /**
         * Whether SystemUI navigation keys is enabled.
         * @hide
         */
        public static final String SYSTEM_NAVIGATION_KEYS_ENABLED =
                "system_navigation_keys_enabled";


        /**
         * This are the settings to be backed up.
         *
@@ -9113,13 +9130,6 @@ public final class Settings {
         */
        public static final String MAX_NOTIFICATION_ENQUEUE_RATE = "max_notification_enqueue_rate";

        /**
         * Whether SystemUI navigation keys is enabled.
         * @hide
         */
        public static final String SYSTEM_NAVIGATION_KEYS_ENABLED =
                "system_navigation_keys_enabled";

        /**
         * Whether cell is enabled/disabled
         * @hide
+2 −2
Original line number Diff line number Diff line
@@ -7280,8 +7280,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
    }

    private boolean areSystemNavigationKeysEnabled() {
        return Settings.Global.getInt(mContext.getContentResolver(),
                Settings.Global.SYSTEM_NAVIGATION_KEYS_ENABLED, 1) == 1;
        return Settings.Secure.getInt(mContext.getContentResolver(),
                Settings.Secure.SYSTEM_NAVIGATION_KEYS_ENABLED, 1) == 1;
    }

    @Override