diff options
author | Daniel Volk <mail@volkarts.com> | 2015-01-10 19:59:26 +0100 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-11-07 13:57:29 -0800 |
commit | 2a048843326dd22351474b2606916b9bcdf81258 (patch) | |
tree | 770f59b96ddd5134e7b8a357599d7077308655c4 /src/com/android/browser/BrowserSettings.java | |
parent | 2a0932b7f2a8bcc70cc5447e247faed5a3c0b6f1 (diff) | |
download | packages_apps_Browser-2a048843326dd22351474b2606916b9bcdf81258.zip packages_apps_Browser-2a048843326dd22351474b2606916b9bcdf81258.tar.gz packages_apps_Browser-2a048843326dd22351474b2606916b9bcdf81258.tar.bz2 |
User agent as advanced setting
By default is a debug only setting.
based on JB commit by D4rKn3sSyS
Change-Id: Ic2d695d68eab6716b12e25c4a999582e7ff7b6a4
Diffstat (limited to 'src/com/android/browser/BrowserSettings.java')
-rw-r--r-- | src/com/android/browser/BrowserSettings.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java index 586db28..8138bc2 100644 --- a/src/com/android/browser/BrowserSettings.java +++ b/src/com/android/browser/BrowserSettings.java @@ -612,6 +612,10 @@ public class BrowserSettings implements OnSharedPreferenceChangeListener, return mPrefs.getString(PREF_SEARCH_ENGINE, SearchEngine.GOOGLE); } + public int getUserAgent() { + return Integer.parseInt(mPrefs.getString(PREF_USER_AGENT, "0")); + } + public boolean allowAppTabs() { return mPrefs.getBoolean(PREF_ALLOW_APP_TABS, false); } @@ -694,13 +698,6 @@ public class BrowserSettings implements OnSharedPreferenceChangeListener, return mPrefs.getBoolean(PREF_ENABLE_HARDWARE_ACCEL_SKIA, false); } - public int getUserAgent() { - if (!isDebugEnabled()) { - return 0; - } - return Integer.parseInt(mPrefs.getString(PREF_USER_AGENT, "0")); - } - // ----------------------------- // getter/setters for hidden_debug_preferences.xml // ----------------------------- |