summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/preferences
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-06-07 14:36:10 -0700
committerJohn Reck <jreck@google.com>2011-06-07 14:36:31 -0700
commit4650033a3790598316d01deef8f52d0bf39d5837 (patch)
treea9702858448dcb40c05f4a5601b847169a212b83 /src/com/android/browser/preferences
parentf33b1637487af3786ee30f295f2c84db6db1e6b3 (diff)
downloadpackages_apps_Browser-4650033a3790598316d01deef8f52d0bf39d5837.zip
packages_apps_Browser-4650033a3790598316d01deef8f52d0bf39d5837.tar.gz
packages_apps_Browser-4650033a3790598316d01deef8f52d0bf39d5837.tar.bz2
New useragent switcher design
Uses a popup menu off of the globe on tablets or favicon on phones Change-Id: Ia3634b5a218456127abb8b266a6cfc664836b037
Diffstat (limited to 'src/com/android/browser/preferences')
-rw-r--r--src/com/android/browser/preferences/LabPreferencesFragment.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/com/android/browser/preferences/LabPreferencesFragment.java b/src/com/android/browser/preferences/LabPreferencesFragment.java
index d9ef3df..0dd8805 100644
--- a/src/com/android/browser/preferences/LabPreferencesFragment.java
+++ b/src/com/android/browser/preferences/LabPreferencesFragment.java
@@ -45,7 +45,6 @@ public class LabPreferencesFragment extends PreferenceFragment
// Load the XML preferences file
addPreferencesFromResource(R.xml.lab_preferences);
registerChangeListener(PreferenceKeys.PREF_ENABLE_QUICK_CONTROLS);
- registerChangeListener(PreferenceKeys.PREF_ENABLE_USERAGENT_SWITCHER);
useInstantPref = findPreference(PreferenceKeys.PREF_USE_INSTANT_SEARCH);
}
@@ -81,17 +80,6 @@ public class LabPreferencesFragment extends PreferenceFragment
startActivity(new Intent(BrowserActivity.ACTION_RESTART, null,
getActivity(), BrowserActivity.class));
}
- if (PreferenceKeys.PREF_ENABLE_USERAGENT_SWITCHER.equals(key)) {
- if ((Boolean)newValue) {
- // Show the help
- LayoutInflater inflater = LayoutInflater.from(getActivity());
- View content = inflater.inflate(R.layout.help_dialog_useragent_switcher, null);
- new AlertDialog.Builder(getActivity())
- .setView(content)
- .setNeutralButton(android.R.string.ok, null)
- .show();
- }
- }
return true;
}
}