Merge "Don't run AttentionDetector when wakelock is held" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ed8620ae02
@@ -2085,7 +2085,8 @@ public final class PowerManagerService extends SystemService
|
||||
nextTimeout = -1;
|
||||
}
|
||||
|
||||
if ((mUserActivitySummary & USER_ACTIVITY_SCREEN_BRIGHT) != 0) {
|
||||
if ((mUserActivitySummary & USER_ACTIVITY_SCREEN_BRIGHT) != 0
|
||||
&& (mWakeLockSummary & WAKE_LOCK_STAY_AWAKE) == 0) {
|
||||
nextTimeout = mAttentionDetector.updateUserActivity(nextTimeout);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user