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

Commit 5d48345c 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: 7ba03c7f

Change-Id: Ic08a2d8ec49009f60efc13e8d7461b93b304f8a7
parents 94868075 7ba03c7f
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);
                }