summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConley Owens <cco3@android.com>2011-04-29 10:23:58 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-04-29 10:23:58 -0700
commit1a846ab089878a6b342c6bc3e8850fc2e0ef3080 (patch)
tree595d305759e35918acd1a5c1eb44f5cc28c46239
parent24825d59f1be896e94deb81cfefc3625b9617be9 (diff)
parentb1578d85ce1b3f3c5e2cf0271011c016b93b7e1a (diff)
downloadframeworks_base-1a846ab089878a6b342c6bc3e8850fc2e0ef3080.zip
frameworks_base-1a846ab089878a6b342c6bc3e8850fc2e0ef3080.tar.gz
frameworks_base-1a846ab089878a6b342c6bc3e8850fc2e0ef3080.tar.bz2
am b1578d85: Merge "Fix startSearch condition on Dialog, because pressing search key causes ANR popup. If search key is pressed on Dialog and there is no search item then do nothing. How to reproduce the issue: Settings > About phone > Legal information > Google legal
* commit 'b1578d85ce1b3f3c5e2cf0271011c016b93b7e1a': Fix startSearch condition on Dialog, because pressing search key causes ANR popup. If search key is pressed on Dialog and there is no search item then do nothing. How to reproduce the issue: Settings > About phone > Legal information > Google legal > Press search key > Touch list item or press back key > ANR popup is shown
-rw-r--r--core/java/android/app/Dialog.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/app/Dialog.java b/core/java/android/app/Dialog.java
index da8c9e5..d70ec0b 100644
--- a/core/java/android/app/Dialog.java
+++ b/core/java/android/app/Dialog.java
@@ -823,7 +823,7 @@ public class Dialog implements DialogInterface, Window.Callback,
// associate search with owner activity
final ComponentName appName = getAssociatedActivity();
- if (appName != null) {
+ if (appName != null && searchManager.getSearchableInfo(appName) != null) {
searchManager.startSearch(null, false, appName, null, false);
dismiss();
return true;