Merge "Check isOnScreen for wallpaper target of recents animation" into rvc-qpr-dev am: b4c3da0819
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13167659 Change-Id: Ib96bb7318f531bb89466c455c000385d0d9066e6
This commit is contained in:
@@ -799,7 +799,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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -437,6 +437,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user