summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2009-10-22 13:31:37 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2009-10-22 13:31:37 -0700
commitd278ffc0984d730b333f53636a223eae6d9b7657 (patch)
tree0264068d254a732d9101658aaf11a4185ec07b40 /services
parent96f225afad61ee701dd84348e380a40ff8900fc0 (diff)
parent96e0c3156e21bbdb0d94201b08d80379b98c472a (diff)
downloadframeworks_base-d278ffc0984d730b333f53636a223eae6d9b7657.zip
frameworks_base-d278ffc0984d730b333f53636a223eae6d9b7657.tar.gz
frameworks_base-d278ffc0984d730b333f53636a223eae6d9b7657.tar.bz2
am 96e0c315: Merge change Ia3f7ef64 into eclair
Merge commit '96e0c3156e21bbdb0d94201b08d80379b98c472a' into eclair-mr2 * commit '96e0c3156e21bbdb0d94201b08d80379b98c472a': PowerManager: Don't poke user activity in setKeyboardVisibility unless the state actually changed.
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/PowerManagerService.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/services/java/com/android/server/PowerManagerService.java b/services/java/com/android/server/PowerManagerService.java
index 29a5ba8..b0c5950 100644
--- a/services/java/com/android/server/PowerManagerService.java
+++ b/services/java/com/android/server/PowerManagerService.java
@@ -2007,12 +2007,14 @@ class PowerManagerService extends IPowerManager.Stub
if (mSpew) {
Log.d(TAG, "setKeyboardVisibility: " + 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
- // switch and synchronized with the lock screen.
- if ((mPowerState & SCREEN_ON_BIT) != 0) {
- userActivity(SystemClock.uptimeMillis(), false, BUTTON_EVENT, true);
+ 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
+ // switch and synchronized with the lock screen.
+ if ((mPowerState & SCREEN_ON_BIT) != 0) {
+ userActivity(SystemClock.uptimeMillis(), false, BUTTON_EVENT, true);
+ }
}
}
}