Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a475204 authored by Hyeongseop Shim's avatar Hyeongseop Shim
Browse files

Avoid the keyguard being a wallpaper target



When a dialog is shown above the keyguard and the keyguard becomes
invisible, the wallpaper flickers due to the destruction process of the
keyguard, which is targeted by the wallpaper.

Bug: 354094575
Test: manual test
1. Turn on the keyguard
2. Start a dialog on the keyguard

Change-Id: I5e50827492e24484e5ae02999109380ab09a2ee5
Signed-off-by: default avatarHyeongseop Shim <hyeongseop.shim@samsung.corp-partner.google.com>
parent 715ffd22
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -183,8 +183,8 @@ class WallpaperController {
            if (DEBUG_WALLPAPER) Slog.v(TAG, "Found recents animation wallpaper target: " + w);
            mFindResults.setWallpaperTarget(w);
            return true;
        } else if (hasWallpaper && w.isOnScreen()
                && (mWallpaperTarget == w || w.isDrawFinishedLw())) {
        } else if (hasWallpaper
                && (w.mActivityRecord != null ? w.isOnScreen() : w.isReadyForDisplay())) {
            if (DEBUG_WALLPAPER) Slog.v(TAG, "Found wallpaper target: " + w);
            mFindResults.setWallpaperTarget(w);
            mFindResults.setIsWallpaperTargetForLetterbox(w.hasWallpaperForLetterboxBackground());