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

Commit 3c9435a2 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

PowerManager: Don't poke user activity in setKeyboardVisibility unless the state actually changed.



Fixes bug b/2158297 (lock screen should time out after 7 seconds)

Change-Id: Ia3f7ef6464129ab78283923dbfd7f7472136e676
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent fee0f577
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -2007,6 +2007,7 @@ class PowerManagerService extends IPowerManager.Stub
            if (mSpew) {
                Log.d(TAG, "setKeyboardVisibility: " + visible);
            }
            if (mKeyboardVisible != visible) {
                mKeyboardVisible = visible;
                // 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
@@ -2016,6 +2017,7 @@ class PowerManagerService extends IPowerManager.Stub
                }
            }
        }
    }

    /**
     * When the keyguard is up, it manages the power state, and userActivity doesn't do anything.