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

Commit c88d9c2e authored by Adnan Begovic's avatar Adnan Begovic
Browse files

fw: Move NAVBAR_LEFT_IN_LANDSCAPE to CMSettings.

Change-Id: I30824dc84bd32e335dde53cee7e40c085894827c
parent d023953a
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -3640,12 +3640,6 @@ public final class Settings {
         */
        public static final String VOICE_LAUNCH_INTENT = "voice_launch_intent";

        /**
         * Whether navigation bar is placed on the left side in landscape mode
         * @hide
         */
        public static final String NAVBAR_LEFT_IN_LANDSCAPE = "navigation_bar_left";

        /**
         * Locale for secondary overlay on dialer for t9 search input
         * @hide
+4 −4
Original line number Diff line number Diff line
@@ -448,8 +448,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
                    UserHandle.USER_ALL);
            resolver.registerContentObserver(Settings.System.getUriFor(
                    Settings.System.SCREEN_BRIGHTNESS_MODE), false, this, UserHandle.USER_ALL);
            resolver.registerContentObserver(Settings.System.getUriFor(
                    Settings.System.NAVBAR_LEFT_IN_LANDSCAPE), false, this, UserHandle.USER_ALL);
            resolver.registerContentObserver(CMSettings.System.getUriFor(
                    CMSettings.System.NAVBAR_LEFT_IN_LANDSCAPE), false, this, UserHandle.USER_ALL);
            resolver.registerContentObserver(CMSettings.System.getUriFor(
                    CMSettings.Secure.RECENTS_LONG_PRESS_ACTIVITY), false, this);
            update();
@@ -475,8 +475,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
                    UserHandle.USER_CURRENT) == 1;

            if (mNavigationBarView != null) {
                boolean navLeftInLandscape = Settings.System.getIntForUser(resolver,
                        Settings.System.NAVBAR_LEFT_IN_LANDSCAPE, 0, UserHandle.USER_CURRENT) == 1;
                boolean navLeftInLandscape = CMSettings.System.getIntForUser(resolver,
                        CMSettings.System.NAVBAR_LEFT_IN_LANDSCAPE, 0, UserHandle.USER_CURRENT) == 1;
                mNavigationBarView.setLeftInLandscape(navLeftInLandscape);
            }

+4 −4
Original line number Diff line number Diff line
@@ -925,8 +925,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            resolver.registerContentObserver(CMSettings.System.getUriFor(
                    CMSettings.System.VOLUME_WAKE_SCREEN), false, this,
                    UserHandle.USER_ALL);
            resolver.registerContentObserver(Settings.System.getUriFor(
                    Settings.System.NAVBAR_LEFT_IN_LANDSCAPE), false, this,
            resolver.registerContentObserver(CMSettings.System.getUriFor(
                    CMSettings.System.NAVBAR_LEFT_IN_LANDSCAPE), false, this,
                    UserHandle.USER_ALL);
            updateSettings();
        }
@@ -2195,8 +2195,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                mDevForceNavbar = devForceNavbar;
            }

            mNavigationBarLeftInLandscape = Settings.System.getIntForUser(resolver,
                    Settings.System.NAVBAR_LEFT_IN_LANDSCAPE, 0, UserHandle.USER_CURRENT) == 1;
            mNavigationBarLeftInLandscape = CMSettings.System.getIntForUser(resolver,
                    CMSettings.System.NAVBAR_LEFT_IN_LANDSCAPE, 0, UserHandle.USER_CURRENT) == 1;

            updateKeyAssignments();