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

Commit 5959d504 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Allow screen rotation animation when entering AOD" into sc-dev

parents f95a6812 3f3f5fcc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4501,7 +4501,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {

    @Override
    public boolean okToAnimate(boolean ignoreScreenOn) {
        return (ignoreScreenOn || mDefaultDisplayPolicy.isAwake()) && !mDeviceGoingToSleep;
        return (ignoreScreenOn || isScreenOn()) && !mDeviceGoingToSleep;
    }

    /** {@inheritDoc} */