Merge "Do not set report-orientation-changed for window without surface" into tm-dev
This commit is contained in:
@@ -1992,7 +1992,8 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
|
||||
scheduleAnimation();
|
||||
|
||||
forAllWindows(w -> {
|
||||
if (w.mHasSurface && !rotateSeamlessly) {
|
||||
if (!w.mHasSurface) return;
|
||||
if (!rotateSeamlessly) {
|
||||
ProtoLog.v(WM_DEBUG_ORIENTATION, "Set mOrientationChanging of %s", w);
|
||||
w.setOrientationChanging(true);
|
||||
}
|
||||
|
||||
@@ -3609,6 +3609,10 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
|
||||
mAnimatingExit = false;
|
||||
ProtoLog.d(WM_DEBUG_ANIM, "Clear animatingExit: reason=destroySurface win=%s", this);
|
||||
|
||||
// Clear the flag so the buffer requested for the next new surface won't be dropped by
|
||||
// mistaking the surface size needs to update.
|
||||
mReportOrientationChanged = false;
|
||||
|
||||
if (useBLASTSync()) {
|
||||
immediatelyNotifyBlastSync();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user