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

Commit 6a1468d7 authored by Abel Tesfaye's avatar Abel Tesfaye
Browse files

Disallow attention check when power save mode is enabled

Test: locally by enabling power save mode and screen attention then checking attention is disabled

Bug: 186690152
Change-Id: Ib56ca385461857040042c9f041c1b3da69b6f347
parent 31cb707f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -257,8 +257,8 @@ public class AttentionManagerService extends SystemService {
            return false;
        }

        // don't allow attention check in screen off state
        if (!mPowerManager.isInteractive()) {
        // don't allow attention check in screen off state or power save mode
        if (!mPowerManager.isInteractive() || mPowerManager.isPowerSaveMode()) {
            return false;
        }