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

Commit 205a99eb authored by Ming-Shin Lu's avatar Ming-Shin Lu
Browse files

Avoid wrapping the display change leash to Keyguard unlock animation

..., in case the animating root task being occluded by this change.

Also skip other non-tasks and non-wallpaper changes as they don't
need to animate for keyguard unlock animation.

See: http://recall/-/bN53iXCwu0DIehsmJlTyWk/eefM8O857S8JUBJmQCieKK

Bug: 283963801
Test: manual by issue steps:
  1) Launch apps to enter split-screen mode
  2) Turn off/on the screen with power key to show the lockscreen
  3) Rotate the device in landscape
  4) Swipe up to dismiss the lockscreen
  5) Expect the split-tasks animates fade-in without seeing a weird
     cross-fade out animation on top of the split-tasks
Change-Id: I261e081b1cb0bd17d0523e2c80368a669a6246d6
parent af4534f6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -122,6 +122,10 @@ public class KeyguardService extends Service {
                }
            }

            // Avoid wrapping non-task and non-wallpaper changes as they don't need to animate
            // for keyguard unlock animation.
            if (taskId < 0 && !wallpapers) continue;

            final RemoteAnimationTarget target = TransitionUtil.newTarget(change,
                    // wallpapers go into the "below" layer space
                    info.getChanges().size() - i,