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

Commit 6e6c0c46 authored by Wale Ogunwale's avatar Wale Ogunwale Committed by android-build-merger
Browse files

Merge \\"Fixed bug with continuously changing orientation while dreaming\\"...

Merge \\"Fixed bug with continuously changing orientation while dreaming\\" into nyc-mr1-dev am: 8a009f43
am: 87ac10db

Change-Id: I8a96d50971eddaa3214a3278f90d6eb3d4f2e7cc
parents 4192eac0 87ac10db
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3525,6 +3525,13 @@ public class WindowManagerService extends IWindowManager.Stub
                // can re-appear and inflict its own orientation on us.  Keep the
                // orientation stable until this all settles down.
                return mLastWindowForcedOrientation;
            } else if (mPolicy.isKeyguardLocked()
                    && mLastKeyguardForcedOrientation != SCREEN_ORIENTATION_UNSPECIFIED) {
                // Use the last orientation the keyguard forced while the display is frozen with the
                // keyguard locked.
                if (DEBUG_ORIENTATION) Slog.v(TAG_WM, "Display is frozen while keyguard locked, "
                        + "return " + mLastKeyguardForcedOrientation);
                return mLastKeyguardForcedOrientation;
            }
        } else {
            // TODO(multidisplay): Change to the correct display.