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

Commit 417a63f5 authored by Yunfan Chen's avatar Yunfan Chen Committed by Android (Google) Code Review
Browse files

Merge "Remove dream when keyguard going away" into main

parents 19e3bb12 ab968901
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -448,6 +448,14 @@ public class KeyguardTransitionHandler
            final WindowContainerTransaction wct = new WindowContainerTransaction();
            wct.addKeyguardState(new KeyguardState.Builder().setKeyguardShowing(keyguardShowing)
                    .setAodShowing(aodShowing).build());

            if (ENABLE_NEW_KEYGUARD_SHELL_TRANSITIONS && dismissDreamOnKeyguardDismiss()
                    && !keyguardShowing && mDreamToken != null) {
                // Dismiss the dream in the same transaction, so that it isn't visible once the
                // device is unlocked.
                wct.removeTask(mDreamToken);
            }

            mMainExecutor.execute(() -> {
                mTransitions.startTransition(keyguardShowing ? TRANSIT_TO_FRONT : TRANSIT_TO_BACK,
                        wct, KeyguardTransitionHandler.this);