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

Commit 1b181e12 authored by Adrian Roos's avatar Adrian Roos
Browse files

DozeScrimController: Fix tight-posting bug

Fixes a typo that lead to never-ending posting of runnables

Change-Id: I6fb36d000d0af53142576a2deffa49151db270b4
Fixes: 64908631
Test: Repeatedly put the device to sleep and wake up with AOD enabled. Ensure system load stays low.
parent dd09e994
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -304,7 +304,7 @@ public class DozeScrimController {
            mHandler.removeCallbacks(mSetDozeInFrontAlphaDelayed);
            mSetDozeInFrontAlphaDelayed = null;
        }
        if (delayMs < 0) {
        if (delayMs <= 0) {
            mScrimController.setDozeInFrontAlpha(opacity);
        } else {
            mHandler.postDelayed(mSetDozeInFrontAlphaDelayed = () -> {