Browse files

Enable zoom controls in HTMLViewer

Due to changes in Chromium WebView, text files may be displayed
using a smaller font, not comfortable for reading. Enabling zoom
controls serves as a workaround. This also puts HTMLViewer
on par with DocViewer (for office files), which also allows
zooming of contents.

BUG: 10674904
Change-Id: I806fbed103e6f714824f69d78e681ee96f142d42
  • Loading branch information...
1 parent 57f281a commit 9715e7c99a3a86162718d7932aaa174090abc381 Mikhail Naganov committed Sep 18, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/com/android/htmlviewer/
@@ -81,8 +81,9 @@ protected void onCreate(Bundle savedInstanceState) {
// Configure the webview
WebSettings s = mWebView.getSettings();
- s.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NARROW_COLUMNS);
+ s.setSupportZoom(true);
+ s.setBuiltInZoomControls(true);

0 comments on commit 9715e7c

Please sign in to comment.