summaryrefslogtreecommitdiffstats
path: root/policy/src
diff options
context:
space:
mode:
authorJose Lima <joselima@google.com>2015-01-28 10:43:15 -0800
committerJose Lima <joselima@google.com>2015-01-28 10:46:39 -0800
commitbd769a15abfcb23b16daaed10c09029bbb978eef (patch)
tree61d5f22151b90acb09c8361482ae0db3320cc54e /policy/src
parent1061652a37e18683c994f9d4b872ecf990125a05 (diff)
downloadframeworks_base-bd769a15abfcb23b16daaed10c09029bbb978eef.zip
frameworks_base-bd769a15abfcb23b16daaed10c09029bbb978eef.tar.gz
frameworks_base-bd769a15abfcb23b16daaed10c09029bbb978eef.tar.bz2
Fix crash caused by disabling the Options panel on TVs
Address more cases where calls to getPanelState may cause a crash when the options panel is disabled on a platform. Bug: 19178531 Bug: 18780696 Change-Id: Ib72bb8483e636181788ed3919c4cb9e99a94b7b1
Diffstat (limited to 'policy/src')
-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);
}