diff options
author | Leon Scroggins <scroggo@google.com> | 2010-03-18 15:06:15 -0400 |
---|---|---|
committer | Leon Scroggins III <scroggo@google.com> | 2010-03-18 15:20:12 -0400 |
commit | b8a844da0049965b3cef5739dbab19c7ac766762 (patch) | |
tree | d20851f24f002aabd65de0910f8221f60ad49048 | |
parent | 9191a7f745c965cf57df94d0628890b413c710c9 (diff) | |
download | packages_apps_browser-b8a844da0049965b3cef5739dbab19c7ac766762.zip packages_apps_browser-b8a844da0049965b3cef5739dbab19c7ac766762.tar.gz packages_apps_browser-b8a844da0049965b3cef5739dbab19c7ac766762.tar.bz2 |
Close the SearchDialog when a new Intent opens the browser.
Fix for http://b/issue?id=2522723
Change-Id: Idf5d878d45b40be93a222385111a87ec32aa2f1b
-rw-r--r-- | src/com/android/browser/BrowserActivity.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java index fef8495..cbf78d6 100644 --- a/src/com/android/browser/BrowserActivity.java +++ b/src/com/android/browser/BrowserActivity.java @@ -409,6 +409,9 @@ public class BrowserActivity extends Activity // just resume the browser return; } + // In case the SearchDialog is open. + ((SearchManager) getSystemService(Context.SEARCH_SERVICE)) + .stopSearch(); boolean activateVoiceSearch = RecognizerResultsIntent .ACTION_VOICE_SEARCH_RESULTS.equals(action); if (Intent.ACTION_VIEW.equals(action) |