diff options
Diffstat (limited to 'src/com/android/browser/TitleBarXLarge.java')
-rw-r--r-- | src/com/android/browser/TitleBarXLarge.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/com/android/browser/TitleBarXLarge.java b/src/com/android/browser/TitleBarXLarge.java index 5f02002..ee46561 100644 --- a/src/com/android/browser/TitleBarXLarge.java +++ b/src/com/android/browser/TitleBarXLarge.java @@ -18,9 +18,7 @@ package com.android.browser; import com.android.browser.UI.DropdownChangeListener; import com.android.browser.autocomplete.SuggestedTextController.TextChangeWatcher; -import com.android.browser.search.SearchEngine; -import android.accounts.Account; import android.app.Activity; import android.content.Context; import android.content.res.Resources; @@ -477,10 +475,8 @@ public class TitleBarXLarge extends TitleBarBase } private void setSearchMode(boolean voiceSearchEnabled) { - SearchEngine searchEngine = BrowserSettings.getInstance() - .getSearchEngine(); boolean showvoicebutton = voiceSearchEnabled && - (searchEngine != null && searchEngine.supportsVoiceSearch()); + mUiController.supportsVoiceSearch(); mVoiceSearch.setVisibility(showvoicebutton ? View.VISIBLE : View.GONE); mGoButton.setVisibility(voiceSearchEnabled ? View.GONE : |