Merge "Check isOnScreen for wallpaper target of recents animation" into rvc-qpr-dev am: b4c3da0819 am: 8fc560cd54

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

Change-Id: I95101686804c264f035bee71cdd60c073c540768
This commit is contained in:
Riddle Hsu
2020-12-07 21:02:49 +00:00
committed by Automerger Merge Worker
2 changed files with 2 additions and 1 deletions

View File

@@ -850,7 +850,7 @@ public class RecentsAnimationController implements DeathRecipient {
return w != null && w.mAttrs.type == TYPE_BASE_APPLICATION &&
((w.mActivityRecord != null && mTargetActivityRecord == w.mActivityRecord)
|| isAnimatingTask(w.getTask()))
&& isTargetOverWallpaper();
&& isTargetOverWallpaper() && w.isOnScreen();
}
/**

View File

@@ -423,6 +423,7 @@ public class RecentsAnimationControllerTest extends WindowTestsBase {
final WindowState homeWindow = createWindow(null, TYPE_BASE_APPLICATION, homeActivity,
"homeWindow");
makeWindowVisible(homeWindow);
homeActivity.addWindow(homeWindow);
homeWindow.getAttrs().flags |= FLAG_SHOW_WALLPAPER;