summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2024-05-17 17:02:09 +0800
committer Riddle Hsu <riddlehsu@google.com> 2024-05-20 12:19:47 +0000
commit275e2758aa0b6739f0e92972fd66a3627cf75685 (patch)
tree922ed4e3d02b5b96a01aa818f93a49e585b0d187 /libs/androidfw/misc.cpp
parentb972663f6daf3cb60874e1169c3e080e735bc8b6 (diff)
Narrow down the condition of wallpaper target for occluded keyguard
Previously, keyguard will be selected as the backup wallpaper target if there keyguard is locked and there is an active transition. That is to avoid wallpaper from being show/hide in a short time when running recents transition to close app on keyguard. The condition was a bit broad so the regular transition will also keep wallpaper target on keyguard. Which could make the transition change mode of wallpaper become CHANGE rather than TO_BACK when launching an occlude-keyguard app and then display rotates. Which could make the condition of seamless rotation rejects the seamless effect because it found wallpaper is a changing operation. To avoid such case, only enable the condition if there is a transient (recents) transition. Bug: 333557024 Test: Enable auto rotation. Set a secured lock. Turn off screen. Double click power key to launch camera when holding the device in landscape. There should not have a rotation animation. Test: On a secured keyguard. Double click power key to launch camera. Swipe from bottom to dismiss camera. The wallpaper target should only change to notification shade once. Test: atest WallpaperControllerTests#testShowWhenLockedWallpaperTarge Change-Id: I43a29e828798f36f39d38af130f98de7c5859ec6
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions