summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Sears <bsears@google.com>2011-10-26 00:08:59 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-10-26 00:08:59 -0700
commitd887377aa84f0d422cf605dad981f8dc53c0f99f (patch)
treed9f207a243d44c8291eaafce0db9025776afa3c3
parent67a1b7d6e5857d0ecdd1aa9d50d10189e5776c11 (diff)
parentff20471b082996243224e006cad19fef8fa80d7c (diff)
downloadframeworks_base-d887377aa84f0d422cf605dad981f8dc53c0f99f.zip
frameworks_base-d887377aa84f0d422cf605dad981f8dc53c0f99f.tar.gz
frameworks_base-d887377aa84f0d422cf605dad981f8dc53c0f99f.tar.bz2
Merge "Fix power key handling after volume change. Bug: 5497716" into ics-mr0
-rwxr-xr-xpolicy/src/com/android/internal/policy/impl/PhoneWindowManager.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
index 318ad9e..0a77654 100755
--- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -571,7 +571,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
if (!mPowerKeyHandled) {
mHandler.removeCallbacks(mPowerLongPress);
}
- mPendingPowerKeyUpCanceled = true;
+ if (mPowerKeyTriggered) {
+ mPendingPowerKeyUpCanceled = true;
+ }
}
private void interceptScreenshotChord() {