summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConley Owens <cco3@android.com>2011-05-02 10:11:43 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-05-02 10:11:43 -0700
commit4c79ca8caef8ad48b21685090a9420dbb3daac84 (patch)
treec7fed95fea61dc7f64a4cf60189838a55c0fc2ea
parent1bb64f534fa690d2db819ae14e4667bc6cabefe1 (diff)
parentc30d767628861b0bbea907824682e47732c820f9 (diff)
downloadframeworks_base-4c79ca8caef8ad48b21685090a9420dbb3daac84.zip
frameworks_base-4c79ca8caef8ad48b21685090a9420dbb3daac84.tar.gz
frameworks_base-4c79ca8caef8ad48b21685090a9420dbb3daac84.tar.bz2
am c30d7676: am 1a846ab0: 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
* commit 'c30d767628861b0bbea907824682e47732c820f9': 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 087753b..82186dd 100644
--- a/core/java/android/app/Dialog.java
+++ b/core/java/android/app/Dialog.java
@@ -931,7 +931,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;