summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/BrowserSettings.java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-04-26 16:57:10 -0700
committerJohn Reck <jreck@google.com>2011-04-26 17:58:33 -0700
commit92f25f806c50bb08de80e1e6741b9852e105b8d9 (patch)
tree9f6e9f007af1f464a63536b332d07c91964bcafc /src/com/android/browser/BrowserSettings.java
parent7b06c907aa31c38069ec2718bd4a388f1f801e6f (diff)
downloadpackages_apps_Browser-92f25f806c50bb08de80e1e6741b9852e105b8d9.zip
packages_apps_Browser-92f25f806c50bb08de80e1e6741b9852e105b8d9.tar.gz
packages_apps_Browser-92f25f806c50bb08de80e1e6741b9852e105b8d9.tar.bz2
Add an option to forceably override user-scalable
Change-Id: I48e0fb0c3472ee51fc907f5b0d307a64400cfe36
Diffstat (limited to 'src/com/android/browser/BrowserSettings.java')
-rw-r--r--src/com/android/browser/BrowserSettings.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java
index 9456561..642fd18 100644
--- a/src/com/android/browser/BrowserSettings.java
+++ b/src/com/android/browser/BrowserSettings.java
@@ -139,6 +139,7 @@ public class BrowserSettings implements OnSharedPreferenceChangeListener,
settings.setDefaultZoom(getDefaultZoom());
settings.setMinimumFontSize(getMinimumFontSize());
settings.setMinimumLogicalFontSize(getMinimumFontSize());
+ settings.setForceUserScalable(forceEnableUserScalable());
settings.setPluginState(getPluginState());
settings.setTextSize(getTextSize());
settings.setUserAgentString(USER_AGENTS[getUserAgent()]);
@@ -384,6 +385,10 @@ public class BrowserSettings implements OnSharedPreferenceChangeListener,
return mPrefs.getInt(PREF_MIN_FONT_SIZE, 1);
}
+ public boolean forceEnableUserScalable() {
+ return mPrefs.getBoolean(PREF_FORCE_USERSCALABLE, false);
+ }
+
// -----------------------------
// getter/setters for advanced_preferences.xml
// -----------------------------