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

Commit 2c37f7b4 authored by Craig Mautner's avatar Craig Mautner Committed by Android (Google) Code Review
Browse files

Merge "Synchronize access to Locked methods. DO NOT MERGE" into jb-mr1.1-dev

parents 03fb5698 d8615906
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
@@ -129,6 +129,10 @@ public class KeyguardViewManager {
        @Override
        protected void onConfigurationChanged(Configuration newConfig) {
            super.onConfigurationChanged(newConfig);
            post(new Runnable() {
                @Override
                public void run() {
                    synchronized (KeyguardViewManager.this) {
                        if (mKeyguardHost.getVisibility() == View.VISIBLE) {
                            // only propagate configuration messages if we're currently showing
                            maybeCreateKeyguardLocked(shouldEnableScreenRotation(), true, null);
@@ -136,6 +140,9 @@ public class KeyguardViewManager {
                            if (DEBUG) Log.v(TAG, "onConfigurationChanged: view not visible");
                        }
                    }
                }
            });
        }

        @Override
        public boolean dispatchKeyEvent(KeyEvent event) {