From b5f9fc32ec3972694b626ab93991b0b9de97749a Mon Sep 17 00:00:00 2001 From: Mangesh Ghiware Date: Wed, 31 Aug 2011 17:49:07 -0700 Subject: Set reading level scale to display density instead of a fixed minimum. On a double tap, zoom to either reading level scale or 0.5f more than current (overview) scale, whichever is greater. This addresses the scenario for large screen devices where overview and reading level scale are the same. Bug: 5165527 Change-Id: I50216d60f98b2904f06742336b9c8c7c512328a6 --- core/java/android/webkit/WebView.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/java/android/webkit/WebView.java') diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 4748522..6274895 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -2343,6 +2343,14 @@ public class WebView extends AbsoluteLayout } /** + * Return the reading level scale of the WebView + * @return The reading level scale. + */ + /*package*/ float getReadingLevelScale() { + return mZoomManager.getReadingLevelScale(); + } + + /** * Set the initial scale for the WebView. 0 means default. If * {@link WebSettings#getUseWideViewPort()} is true, it zooms out all the * way. Otherwise it starts with 100%. If initial scale is greater than 0, -- cgit v1.1