Merge "Wait for notification shade to redraw on orientation change" into sc-dev am: 7b4e645ce0

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15401463

Change-Id: I99518266901ddfd1a1f74947f66bdc7681d3b942
This commit is contained in:
Riddle Hsu
2021-07-29 19:16:15 +00:00
committed by Automerger Merge Worker

View File

@@ -66,10 +66,8 @@ public class FadeRotationAnimationController extends FadeAnimationController {
} else {
mNavBarToken = null;
}
// Do not fade notification shade when running fixed rotation (not frozen) because it may
// need to animate with the launching app.
final WindowState notificationShade = mFrozenTimeoutRunnable == null
? displayPolicy.getNotificationShade() : null;
// Collect the target windows to fade out. The display won't wait for them to unfreeze.
final WindowState notificationShade = displayPolicy.getNotificationShade();
displayContent.forAllWindows(w -> {
if (w.mActivityRecord == null && w.mHasSurface && !w.mForceSeamlesslyRotate
&& !w.mIsWallpaper && !w.mIsImWindow && w != navigationBar