Merge "Don't run AttentionDetector when wakelock is held" into qt-dev am: ed8620ae02
am: b326363d94
Change-Id: Iffe2e9673b3de295412bb882d893f84fca524040
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