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

Commit 3c2d1fd8 authored by Chong Zhang's avatar Chong Zhang Committed by Android Git Automerger
Browse files

am 7c8eb2b9: am 52e6d458: am 430778bd: am 482635e3: Merge "Fix deadlock when...

am 7c8eb2b9: am 52e6d458: am 430778bd: am 482635e3: Merge "Fix deadlock when updating rotation" into mnc-dr-dev

* commit '7c8eb2b9':
  Fix deadlock when updating rotation
parents 86c69dde 7c8eb2b9
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -773,6 +773,13 @@ public class PhoneWindowManager implements WindowManagerPolicy {
    }

    class MyOrientationListener extends WindowOrientationListener {
        private final Runnable mUpdateRotationRunnable = new Runnable() {
            @Override
            public void run() {
                updateRotation(false);
            }
        };

        MyOrientationListener(Context context, Handler handler) {
            super(context, handler);
        }
@@ -780,7 +787,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        @Override
        public void onProposedRotationChanged(int rotation) {
            if (localLOGV) Slog.v(TAG, "onProposedRotationChanged, rotation=" + rotation);
            updateRotation(false);
            mHandler.post(mUpdateRotationRunnable);
        }
    }
    MyOrientationListener mOrientationListener;