summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2009-08-05 17:19:17 -0700
committerGrace Kloba <klobag@google.com>2009-08-06 12:05:33 -0700
commit5b4b8f1d53b2b71ad65d51eec377119d94611662 (patch)
tree7519dfe43da639492220e31e97879352ca92d404 /src/com/android/browser
parenta5d669e4c08f0e64387c2c539c41a26ac8c845ab (diff)
downloadpackages_apps_Browser-5b4b8f1d53b2b71ad65d51eec377119d94611662.zip
packages_apps_Browser-5b4b8f1d53b2b71ad65d51eec377119d94611662.tar.gz
packages_apps_Browser-5b4b8f1d53b2b71ad65d51eec377119d94611662.tar.bz2
Add a setting to load a page in overview mode.
Diffstat (limited to 'src/com/android/browser')
-rw-r--r--src/com/android/browser/BrowserSettings.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java
index 05b05d6..6f5caed 100644
--- a/src/com/android/browser/BrowserSettings.java
+++ b/src/com/android/browser/BrowserSettings.java
@@ -72,6 +72,7 @@ class BrowserSettings extends Observable {
private boolean loginInitialized = false;
private boolean autoFitPage = true;
private boolean landscapeOnly = false;
+ private boolean loadsPageInOverviewMode = true;
private boolean showDebugSettings = false;
// HTML5 API flags
private boolean appCacheEnabled = true;
@@ -200,6 +201,7 @@ class BrowserSettings extends Observable {
s.setLightTouchEnabled(b.lightTouch);
s.setSaveFormData(b.saveFormData);
s.setSavePassword(b.rememberPasswords);
+ s.setLoadWithOverviewMode(b.loadsPageInOverviewMode);
// WebView inside Browser doesn't want initial focus to be set.
s.setNeedInitialFocus(false);
@@ -296,6 +298,8 @@ class BrowserSettings extends Observable {
zoomDensity = WebSettings.ZoomDensity.valueOf(
p.getString(PREF_DEFAULT_ZOOM, zoomDensity.name()));
autoFitPage = p.getBoolean("autofit_pages", autoFitPage);
+ loadsPageInOverviewMode = p.getBoolean("load_page",
+ loadsPageInOverviewMode);
boolean landscapeOnlyTemp =
p.getBoolean("landscape_only", landscapeOnly);
if (landscapeOnlyTemp != landscapeOnly) {