diff options
author | Narayan Kamath <narayan@google.com> | 2011-11-17 14:43:32 +0000 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2011-11-18 11:42:58 +0000 |
commit | f3174a588cdf63ef59055998c23aad4b36b7856e (patch) | |
tree | 31875de0a06d8d100a817c90aa3b455d7c025c27 /src/com/android/browser/preferences | |
parent | ccd78601a934cf1ffafe5854a1d465c273727f69 (diff) | |
download | packages_apps_Browser-f3174a588cdf63ef59055998c23aad4b36b7856e.zip packages_apps_Browser-f3174a588cdf63ef59055998c23aad4b36b7856e.tar.gz packages_apps_Browser-f3174a588cdf63ef59055998c23aad4b36b7856e.tar.bz2 |
Remove the psychic labs feature.
Reverts the UrlInputView to a standard autocomplete
that causes less trouble for IMEs.
bug:5598837
Change-Id: If469d76f4feda88e4a122264a39d317737404578
Diffstat (limited to 'src/com/android/browser/preferences')
-rw-r--r-- | src/com/android/browser/preferences/LabPreferencesFragment.java | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/com/android/browser/preferences/LabPreferencesFragment.java b/src/com/android/browser/preferences/LabPreferencesFragment.java index ca3a86a..222b5fa 100644 --- a/src/com/android/browser/preferences/LabPreferencesFragment.java +++ b/src/com/android/browser/preferences/LabPreferencesFragment.java @@ -26,35 +26,11 @@ import com.android.browser.R; import com.android.browser.search.SearchEngine; public class LabPreferencesFragment extends PreferenceFragment { - private BrowserSettings mBrowserSettings; - private Preference useInstantPref; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - - mBrowserSettings = BrowserSettings.getInstance(); - // Load the XML preferences file addPreferencesFromResource(R.xml.lab_preferences); - useInstantPref = findPreference(PreferenceKeys.PREF_USE_INSTANT_SEARCH); } - - @Override - public void onResume() { - super.onResume(); - if (useInstantPref != null) { - useInstantPref.setEnabled(false); - - // Enable the "use instant" preference only if the selected - // search engine is google. - if (mBrowserSettings.getSearchEngine() != null) { - final String currentName = mBrowserSettings.getSearchEngine().getName(); - if (SearchEngine.GOOGLE.equals(currentName)) { - useInstantPref.setEnabled(true); - } - } - } - } - } |