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

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

Change-Id: I606b3082d151d58a6fd9df5a1dda3955a37ce0f0
This commit is contained in:
Presubmit Automerger Backend
2022-02-23 16:32:18 +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;
};