diff options
| author | Mangesh Ghiware <mghiware@google.com> | 2011-08-31 17:49:07 -0700 |
|---|---|---|
| committer | Mangesh Ghiware <mghiware@google.com> | 2011-09-01 10:49:04 -0700 |
| commit | b5f9fc32ec3972694b626ab93991b0b9de97749a (patch) | |
| tree | 7b81dc4ec5dfa1286001f83e0fd79b5e0dc9a431 /core/java/android/webkit/WebView.java | |
| parent | 468485747970d9842d94e1d292fe4cced701cad2 (diff) | |
| download | frameworks_base-b5f9fc32ec3972694b626ab93991b0b9de97749a.zip frameworks_base-b5f9fc32ec3972694b626ab93991b0b9de97749a.tar.gz frameworks_base-b5f9fc32ec3972694b626ab93991b0b9de97749a.tar.bz2 | |
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
Diffstat (limited to 'core/java/android/webkit/WebView.java')
| -rw-r--r-- | core/java/android/webkit/WebView.java | 8 |
1 files changed, 8 insertions, 0 deletions
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, |
