diff options
author | Jeff Brown <jeffbrown@google.com> | 2011-02-22 16:37:50 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-02-22 16:37:50 -0800 |
commit | 1815c0275e9714c9ba0263b652c8576dd1059cb1 (patch) | |
tree | ab9703205785c7d7f8eee7947210b93771d12171 /policy | |
parent | 1665da555d9795fbb8a91b22579e5dd9257a1220 (diff) | |
parent | bfaf3b91709ef35e0d5901b186edd7c2a9729161 (diff) | |
download | frameworks_base-1815c0275e9714c9ba0263b652c8576dd1059cb1.zip frameworks_base-1815c0275e9714c9ba0263b652c8576dd1059cb1.tar.gz frameworks_base-1815c0275e9714c9ba0263b652c8576dd1059cb1.tar.bz2 |
Merge "Be more precise about tracking fallback keys."
Diffstat (limited to 'policy')
-rwxr-xr-x | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 8 |
1 files changed, 7 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 84588b7..9794944 100755 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -1448,7 +1448,13 @@ public class PhoneWindowManager implements WindowManagerPolicy { | KeyEvent.META_META_LEFT_ON | KeyEvent.META_META_RIGHT_ON)); if (shortcutIntent != null) { shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); - mContext.startActivity(shortcutIntent); + try { + mContext.startActivity(shortcutIntent); + } catch (ActivityNotFoundException ex) { + Slog.w(TAG, "Dropping shortcut key combination because " + + "the activity to which it is registered was not found: " + + "META+" + KeyEvent.keyCodeToString(keyCode), ex); + } return null; } } |