summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorJose Lima <joselima@google.com>2015-01-28 20:59:05 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-01-28 20:59:05 +0000
commit4a40f7cc90d8f908527d2cfff32376ee51259250 (patch)
treece159c202ef8fd0259e0cfe73ac7398b65739793 /policy
parentc71091151636f8276c4d1bffc75b66f90a36c774 (diff)
parent1f81973e7d33f2a3f4b0a0e232854283f0f18030 (diff)
downloadframeworks_base-4a40f7cc90d8f908527d2cfff32376ee51259250.zip
frameworks_base-4a40f7cc90d8f908527d2cfff32376ee51259250.tar.gz
frameworks_base-4a40f7cc90d8f908527d2cfff32376ee51259250.tar.bz2
Merge "Fix crash caused by disabling the Options panel on TVs" into lmp-mr1-dev
automerge: 1f81973 * commit '1f81973e7d33f2a3f4b0a0e232854283f0f18030': Fix crash caused by disabling the Options panel on TVs
Diffstat (limited to 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/PhoneWindow.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindow.java b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
index 281fde3..f5d43d8 100644
--- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
@@ -3165,7 +3165,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
// If the user is chording a menu shortcut, release the chord since
// this window lost focus
- if (!hasWindowFocus && mPanelChordingKey != 0) {
+ if (hasFeature(FEATURE_OPTIONS_PANEL) && !hasWindowFocus && mPanelChordingKey != 0) {
closePanel(FEATURE_OPTIONS_PANEL);
}