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

Commit 5d5f7f7f authored by Abel Tesfaye's avatar Abel Tesfaye Committed by Android (Google) Code Review
Browse files

Merge "Disallow attention check when power save mode is enabled" into sc-dev

parents f8d0b83c 6a1468d7
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -257,8 +257,8 @@ public class AttentionManagerService extends SystemService {
            return false;
            return false;
        }
        }


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