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

Commit 531eb4e9 authored by Doris Ling's avatar Doris Ling Committed by android-build-merger
Browse files

Merge \\"Add a secure setting for double twist gesture for camera flip.\\"...

Merge \\"Add a secure setting for double twist gesture for camera flip.\\" into nyc-mr1-dev am: 3e869587
am: b8d3caf4

Change-Id: I9265956ac2253f8a19c3a7f4dc8e6d9ada97f931
parents a0762f9c b8d3caf4
Loading
Loading
Loading
Loading
+17 −7
Original line number Diff line number Diff line
@@ -6149,6 +6149,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
@@ -6309,6 +6318,14 @@ public final class Settings {
         */
        public static final String DOWNLOADS_BACKUP_ENABLED = "downloads_backup_enabled";

        /**
         * 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.
         *
@@ -9122,13 +9139,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
@@ -7281,8 +7281,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