diff options
author | Leon Scroggins <scroggo@google.com> | 2010-11-05 10:37:42 -0400 |
---|---|---|
committer | Leon Scroggins <scroggo@google.com> | 2010-11-05 10:37:42 -0400 |
commit | 025d5b0be4d442b773d53b49f67c02e2e4f92360 (patch) | |
tree | 66c0fdca61e0f0db9587a21c022bac6f492ec876 /src/com/android/browser/BrowserSettings.java | |
parent | 5e53261becefee8b69cff33d687bee2f7bd1000f (diff) | |
download | packages_apps_Browser-025d5b0be4d442b773d53b49f67c02e2e4f92360.zip packages_apps_Browser-025d5b0be4d442b773d53b49f67c02e2e4f92360.tar.gz packages_apps_Browser-025d5b0be4d442b773d53b49f67c02e2e4f92360.tar.bz2 |
Remove landscape-only option.
Bug:2416373
Change-Id: Icc32bf65bda016f18ebb5d02932446ff64b77427
Diffstat (limited to 'src/com/android/browser/BrowserSettings.java')
-rw-r--r-- | src/com/android/browser/BrowserSettings.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java index db0f73e..99de9dc 100644 --- a/src/com/android/browser/BrowserSettings.java +++ b/src/com/android/browser/BrowserSettings.java @@ -88,7 +88,6 @@ public class BrowserSettings extends Observable { private String homeUrl = ""; private SearchEngine searchEngine; private boolean autoFitPage; - private boolean landscapeOnly; private boolean loadsPageInOverviewMode; private boolean showDebugSettings; // HTML5 API flags @@ -412,11 +411,6 @@ public class BrowserSettings extends Observable { autoFitPage = p.getBoolean("autofit_pages", autoFitPage); loadsPageInOverviewMode = p.getBoolean("load_page", loadsPageInOverviewMode); - boolean landscapeOnlyTemp = - p.getBoolean("landscape_only", landscapeOnly); - if (landscapeOnlyTemp != landscapeOnly) { - landscapeOnly = landscapeOnlyTemp; - } useWideViewPort = true; // use wide view port for either setting if (autoFitPage) { layoutAlgorithm = WebSettings.LayoutAlgorithm.NARROW_COLUMNS; @@ -657,9 +651,6 @@ public class BrowserSettings extends Observable { // Enable/disable the error console. mTabControl.getBrowserActivity().setShouldShowErrorConsole( showDebugSettings && showConsole); - mTabControl.getBrowserActivity().setRequestedOrientation( - landscapeOnly ? ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE - : ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED); } /*package*/ void clearDatabases(Context context) { @@ -715,7 +706,6 @@ public class BrowserSettings extends Observable { autoFillEnabled = false; openInBackground = false; autoFitPage = true; - landscapeOnly = false; loadsPageInOverviewMode = true; showDebugSettings = false; // HTML5 API flags |