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

Commit e41e055e authored by Yifei Zhang's avatar Yifei Zhang
Browse files

wallpaper: disallow draw wake lock during DOZE_SUSPEND

- Replicate ag/I1f96fddc37dc245efe75acc53fed474af6a5d2b8 in ViewRootImpl
- Draw wake lock shouldn't be held while display is in DOZE_SUSPEND

Flag: EXEMPT bugfix
Test: verify that no DRAW_WAKE_LOCK during DOZE_SUSPEND
Bug: 349886281
Bug: 349585193
Change-Id: I4bf5e2f2214978dbc54ea539786020ac91c5bf8b
parent 4713c3e0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -404,8 +404,7 @@ public abstract class WallpaperService extends Service {
            }

            private void prepareToDraw() {
                if (mDisplayState == Display.STATE_DOZE
                        || mDisplayState == Display.STATE_DOZE_SUSPEND) {
                if (mDisplayState == Display.STATE_DOZE) {
                    try {
                        mSession.pokeDrawLock(mWindow);
                    } catch (RemoteException e) {