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

Commit fc2edf98 authored by Alex Salo's avatar Alex Salo Committed by android-build-merger
Browse files

Merge "Don't run AttentionDetector when wakelock is held" into qt-dev am: ed8620ae

am: b326363d

Change-Id: Iffe2e9673b3de295412bb882d893f84fca524040
parents 94868075 b326363d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
                }