Merge "Make sure updateSurface is called for rotation change" into tm-qpr-dev

This commit is contained in:
Riddle Hsu
2022-05-17 04:02:05 +00:00
committed by Android (Google) Code Review

View File

@@ -1772,7 +1772,7 @@ public final class ViewRootImpl implements ViewParent,
}
}
mForceNextWindowRelayout = forceNextWindowRelayout;
mForceNextWindowRelayout |= forceNextWindowRelayout;
mPendingAlwaysConsumeSystemBars = args.argi2 != 0;
mSyncSeqId = args.argi4 > mSyncSeqId ? args.argi4 : mSyncSeqId;
@@ -5233,6 +5233,9 @@ public final class ViewRootImpl implements ViewParent,
// the buffers may still have content in previous rotation. And the next draw may
// not update all regions, that causes some afterimages to flicker.
mUpdateSurfaceNeeded = true;
if (!mIsInTraversal) {
mForceNextWindowRelayout = true;
}
}
Configuration globalConfig = mergedConfiguration.getGlobalConfiguration();