Merge "Don't run AttentionDetector when wakelock is held" into qt-dev am: ed8620ae02 am: b326363d94
am: fc2edf9847
Change-Id: I22abc65b507ee22500977b15d7f4c54a73447836
This commit is contained in:
@@ -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