summaryrefslogtreecommitdiffstats
path: root/core/java/android/server
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-07-22 11:51:01 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2009-07-22 11:51:01 -0700
commitba5e889eae1175f5ff220637f48e848d56a96ba0 (patch)
tree6fa62d44ac07a2eb824e32b429940ede8b5d98e8 /core/java/android/server
parentc33bd02e0fcfc2c8cbfbbd108f970eb1943a578d (diff)
parent6de72ea39c9c00a2dc5ec539bf5733020c4db52f (diff)
downloadframeworks_base-ba5e889eae1175f5ff220637f48e848d56a96ba0.zip
frameworks_base-ba5e889eae1175f5ff220637f48e848d56a96ba0.tar.gz
frameworks_base-ba5e889eae1175f5ff220637f48e848d56a96ba0.tar.bz2
am 6de72ea3: Merge change 8201 into donut
Merge commit '6de72ea39c9c00a2dc5ec539bf5733020c4db52f' * commit '6de72ea39c9c00a2dc5ec539bf5733020c4db52f': Proactively set mVisible attribute in startSearch and stopSearch (not just in message handler).
Diffstat (limited to 'core/java/android/server')
-rw-r--r--core/java/android/server/search/SearchDialogWrapper.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/server/search/SearchDialogWrapper.java b/core/java/android/server/search/SearchDialogWrapper.java
index d3ef5de..b8a9875 100644
--- a/core/java/android/server/search/SearchDialogWrapper.java
+++ b/core/java/android/server/search/SearchDialogWrapper.java
@@ -190,6 +190,9 @@ implements DialogInterface.OnCancelListener, DialogInterface.OnDismissListener {
msgData.putBundle(KEY_APP_SEARCH_DATA, appSearchData);
msgData.putInt(KEY_IDENT, ident);
mSearchUiThread.sendMessage(msg);
+ // be a little more eager in setting this so isVisible will return the correct value if
+ // called immediately after startSearch
+ mVisible = true;
}
/**
@@ -199,6 +202,9 @@ implements DialogInterface.OnCancelListener, DialogInterface.OnDismissListener {
public void stopSearch() {
if (DBG) debug("stopSearch()");
mSearchUiThread.sendEmptyMessage(MSG_STOP_SEARCH);
+ // be a little more eager in setting this so isVisible will return the correct value if
+ // called immediately after stopSearch
+ mVisible = false;
}
/**