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

This commit is contained in:
Abel Tesfaye
2021-05-03 19:26:29 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}