Only allow focused window to select seamless rotation.

am: 828ec3dc51

Change-Id: I617dbf02a81a004a38ec3b1da1381ae0497f64ba
This commit is contained in:
Robert Carr
2016-08-23 14:51:37 +00:00
committed by android-build-merger

View File

@@ -7828,6 +7828,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
}
final WindowState w = mTopFullscreenOpaqueWindowState;
if (w != mFocusedWindow) {
return false;
}
// We only enable seamless rotation if the top window has requested
// it and is in the fullscreen opaque state. Seamless rotation