Merge "Only allow focused window to select seamless rotation." into nyc-mr1-dev

This commit is contained in:
Rob Carr
2016-08-22 23:53:01 +00:00
committed by Android (Google) Code Review

View File

@@ -7756,6 +7756,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