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

Commit f1d14f6a authored by Mike Lockwood's avatar Mike Lockwood
Browse files

Do not advance mLastEventTime when enabling or disabling user activity.



Fixes a race condition between the keyguard and power key that sometimes resulted
in the power key failing to turn off the screen.

Fixes bug b/2212852 (Power button does not put phone to sleep)

Change-Id: I92498c5fddf2bfc32b105ea1a7ea14a06d83888e
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 9efd523c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2079,7 +2079,6 @@ class PowerManagerService extends IPowerManager.Stub
    public void enableUserActivity(boolean enabled) {
        synchronized (mLocks) {
            mUserActivityAllowed = enabled;
            mLastEventTime = SystemClock.uptimeMillis(); // we might need to pass this in
        }
    }