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:
commit
f9aca51136
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue