[automerge] Keep showing wallpaper when starting an app immediatly after unlock. 2p: f0a9429cc2 am: ef17fbb23d am: 33cf01cde6

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

Change-Id: I5ae72f3143409614923f2ddfc64efe258e367746
This commit is contained in:
Presubmit Automerger Backend
2022-02-23 17:35:42 +00:00
committed by Automerger Merge Worker

View File

@@ -196,8 +196,11 @@ class WallpaperController {
"Win " + w + ": token animating, looking behind.");
}
mFindResults.setIsWallpaperTargetForLetterbox(w.hasWallpaperForLetterboxBackground());
// Found a target! End search.
return true;
// While the keyguard is going away, both notification shade and a normal activity such
// as a launcher can satisfy criteria for a wallpaper target. In this case, we should
// chose the normal activity, otherwise wallpaper becomes invisible when a new animation
// starts before the keyguard going away animation finishes.
return w.mActivityRecord != null;
}
return false;
};