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

Commit 52e22aab authored by Issei Suzuki's avatar Issei Suzuki
Browse files

Stop animating wallpaper and non-app windows in WM

When keyguard is going away, WM applies animation on the wallpaper and
non-app windows. With remote animation enabled, all animation will be
handled in KeyguardService, so WM shouldn't apply animation locally.

Bug: 175686682
Test: Manual. Tap notification on the lock screen to dismiss keyguard,
      verify alpha value of the wallpaper surface unchanged.
Change-Id: I46879ef872cfa38e99586cbeb4c991d1ec359e87
parent 6ceb0988
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -800,7 +800,8 @@ public class AppTransitionController {
    }

    private void handleNonAppWindowsInTransition(@TransitionOldType int transit, int flags) {
        if (transit == TRANSIT_OLD_KEYGUARD_GOING_AWAY) {
        if (transit == TRANSIT_OLD_KEYGUARD_GOING_AWAY
                && !WindowManagerService.sEnableRemoteKeyguardGoingAwayAnimation) {
            if ((flags & TRANSIT_FLAG_KEYGUARD_GOING_AWAY_WITH_WALLPAPER) != 0
                    && (flags & TRANSIT_FLAG_KEYGUARD_GOING_AWAY_NO_ANIMATION) == 0
                    && (flags & TRANSIT_FLAG_KEYGUARD_GOING_AWAY_SUBTLE_ANIMATION) == 0) {
@@ -812,8 +813,9 @@ public class AppTransitionController {
                }
            }
        }
        if (transit == TRANSIT_OLD_KEYGUARD_GOING_AWAY
                || transit == TRANSIT_OLD_KEYGUARD_GOING_AWAY_ON_WALLPAPER) {
        if ((transit == TRANSIT_OLD_KEYGUARD_GOING_AWAY
                || transit == TRANSIT_OLD_KEYGUARD_GOING_AWAY_ON_WALLPAPER)
                && !WindowManagerService.sEnableRemoteKeyguardGoingAwayAnimation) {
            mDisplayContent.startKeyguardExitOnNonAppWindows(
                    transit == TRANSIT_OLD_KEYGUARD_GOING_AWAY_ON_WALLPAPER,
                    (flags & TRANSIT_FLAG_KEYGUARD_GOING_AWAY_TO_SHADE) != 0,
+2 −1
Original line number Diff line number Diff line
@@ -401,7 +401,8 @@ class Transition extends Binder implements BLASTSyncEngine.TransactionReadyListe
        if (dc == null) {
            return;
        }
        if (transit == TRANSIT_KEYGUARD_GOING_AWAY) {
        if (transit == TRANSIT_KEYGUARD_GOING_AWAY
                && !WindowManagerService.sEnableRemoteKeyguardGoingAwayAnimation) {
            if ((flags & TRANSIT_FLAG_KEYGUARD_GOING_AWAY_WITH_WALLPAPER) != 0
                    && (flags & TRANSIT_FLAG_KEYGUARD_GOING_AWAY_NO_ANIMATION) == 0
                    && (flags & TRANSIT_FLAG_KEYGUARD_GOING_AWAY_SUBTLE_ANIMATION) == 0) {