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

Commit 370d3272 authored by Adrian Roos's avatar Adrian Roos
Browse files

AOD: Add additional delayed dozeTimeTick after unpausing

Bug: 71913808
Test: n/a
Change-Id: I9e147c113acb4884fd035db75fb0727038bf085c
parent 3572be2c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -114,6 +114,8 @@ public class DozeUi implements DozeMachine.Part {
                    mHost.dozeTimeTick();
                    // The first frame may arrive when the display isn't ready yet.
                    mHandler.postDelayed(mWakeLock.wrap(mHost::dozeTimeTick), 100);
                    // The the delayed frame may arrive when the display isn't ready yet either.
                    mHandler.postDelayed(mWakeLock.wrap(mHost::dozeTimeTick), 1000);
                }
                scheduleTimeTick();
                break;