Merge commit 'd278ffc0984d730b333f53636a223eae6d9b7657' into eclair-mr2-plus-aosp * commit 'd278ffc0984d730b333f53636a223eae6d9b7657': PowerManager: Don't poke user activity in setKeyboardVisibility unless the state actually changed.
This commit is contained in:
@@ -2007,12 +2007,14 @@ class PowerManagerService extends IPowerManager.Stub
|
|||||||
if (mSpew) {
|
if (mSpew) {
|
||||||
Log.d(TAG, "setKeyboardVisibility: " + visible);
|
Log.d(TAG, "setKeyboardVisibility: " + visible);
|
||||||
}
|
}
|
||||||
mKeyboardVisible = visible;
|
if (mKeyboardVisible != visible) {
|
||||||
// don't signal user activity if the screen is off; other code
|
mKeyboardVisible = visible;
|
||||||
// will take care of turning on due to a true change to the lid
|
// don't signal user activity if the screen is off; other code
|
||||||
// switch and synchronized with the lock screen.
|
// will take care of turning on due to a true change to the lid
|
||||||
if ((mPowerState & SCREEN_ON_BIT) != 0) {
|
// switch and synchronized with the lock screen.
|
||||||
userActivity(SystemClock.uptimeMillis(), false, BUTTON_EVENT, true);
|
if ((mPowerState & SCREEN_ON_BIT) != 0) {
|
||||||
|
userActivity(SystemClock.uptimeMillis(), false, BUTTON_EVENT, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user