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

Commit 1003ce96 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Delay display DOZE on LS => AOD"

parents e3c9ab73 6ec8855b
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -309,7 +309,12 @@ public class DozeParameters implements
     * delayed for a few seconds. This might be useful to play animations without reducing FPS.
     */
    public boolean shouldDelayDisplayDozeTransition() {
        return mScreenOffAnimationController.shouldDelayDisplayDozeTransition();
        return willAnimateFromLockScreenToAod()
                || mScreenOffAnimationController.shouldDelayDisplayDozeTransition();
    }

    private boolean willAnimateFromLockScreenToAod() {
        return getAlwaysOn() && mKeyguardShowing;
    }

    /**