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

Commit 134eb2cf authored by Alex Salo's avatar Alex Salo Committed by Automerger Merge Worker
Browse files

Merge "Fix Screen Attention reporting ABSENT twice" into rvc-dev am: d53e8618

Change-Id: I98d5c5a9b4fffe16eae5fab118f648263f12da4f
parents 7fe02e32 d53e8618
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2338,8 +2338,7 @@ public final class PowerManagerService extends SystemService
                    nextTimeout = -1;
                }

                if (((mUserActivitySummary & USER_ACTIVITY_SCREEN_BRIGHT) != 0
                        || (mUserActivitySummary & USER_ACTIVITY_SCREEN_DIM) != 0)
                if ((mUserActivitySummary & USER_ACTIVITY_SCREEN_BRIGHT) != 0
                        && (mWakeLockSummary & WAKE_LOCK_STAY_AWAKE) == 0) {
                    nextTimeout = mAttentionDetector.updateUserActivity(nextTimeout,
                            screenDimDuration);