am 0879cef6: Don\'t call SearchManager.isVisible() in Launcher.

Merge commit '0879cef6ddeda7e5e5409fe1277b9786aab32249'

* commit '0879cef6ddeda7e5e5409fe1277b9786aab32249':
  Don't call SearchManager.isVisible() in Launcher.
This commit is contained in:
Bjorn Bringert 2009-07-08 07:06:23 -07:00 committed by The Android Open Source Project
commit f9aca51136
1 changed files with 1 additions and 3 deletions

View File

@ -1244,9 +1244,7 @@ public final class Launcher extends Activity implements View.OnClickListener, On
void stopSearch() {
// Close search dialog
SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
if (searchManager.isVisible()) {
searchManager.stopSearch();
}
searchManager.stopSearch();
// Restore search widget to its normal position
Search searchWidget = mWorkspace.findSearchWidgetOnCurrentScreen();
if (searchWidget != null) {