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

Commit fe2bddfa authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Don't wake up the screen as soon as the lid opens.

We may need to wait until the lock screen is ready.

Change-Id: Id114f4f37051680ab880056b4c989b1fa8aa02b3
parent 7f3fb7de
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1862,9 +1862,10 @@ class PowerManagerService extends IPowerManager.Stub
                Log.d(TAG, "setKeyboardVisibility: " + visible);
            }
            mKeyboardVisible = visible;
            // don't signal user activity when closing keyboard if the screen is off.
            // otherwise, we want to make sure the backlights are adjusted.
            if (visible || (mPowerState & SCREEN_ON_BIT) != 0) {
            // don't signal user activity if the screen is off; other code
            // will take care of turning on due to a true change to the lid
            // switch and synchronized with the lock screen.
            if ((mPowerState & SCREEN_ON_BIT) != 0) {
                userActivity(SystemClock.uptimeMillis(), false, BUTTON_EVENT, true);
            }
        }