diff options
author | Leon Scroggins III <scroggo@google.com> | 2010-09-17 11:10:29 -0400 |
---|---|---|
committer | Leon Scroggins III <scroggo@google.com> | 2010-09-17 11:12:36 -0400 |
commit | 3130660e0045923199c74efa7c1df9ea85501dce (patch) | |
tree | 49d2701dd2f687127c950c873dbef6df6776b3a6 /src/com/android/browser/BrowserSettings.java | |
parent | 785ad9a5258db19e8c98eb7969aff453af944565 (diff) | |
download | packages_apps_browser-3130660e0045923199c74efa7c1df9ea85501dce.zip packages_apps_browser-3130660e0045923199c74efa7c1df9ea85501dce.tar.gz packages_apps_browser-3130660e0045923199c74efa7c1df9ea85501dce.tar.bz2 |
Default to Google if global search provider not present.
Bug: 3009486
Change-Id: I9d727b5f6d478483814e420aca7ad30dcf5252f5
Diffstat (limited to 'src/com/android/browser/BrowserSettings.java')
-rw-r--r-- | src/com/android/browser/BrowserSettings.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java index 92b4cac..a51c773 100644 --- a/src/com/android/browser/BrowserSettings.java +++ b/src/com/android/browser/BrowserSettings.java @@ -302,7 +302,8 @@ class BrowserSettings extends Observable { homeUrl = p.getString(PREF_HOMEPAGE, homeUrl); - String searchEngineName = p.getString(PREF_SEARCH_ENGINE, null); + String searchEngineName = p.getString(PREF_SEARCH_ENGINE, + SearchEngine.GOOGLE); if (searchEngine == null || !searchEngine.getName().equals(searchEngineName)) { if (searchEngine != null) { if (searchEngine.supportsVoiceSearch()) { |