diff options
author | Grace Kloba <klobag@google.com> | 2009-09-20 16:34:44 -0700 |
---|---|---|
committer | Grace Kloba <klobag@google.com> | 2009-09-22 10:07:27 -0700 |
commit | 408cf85207a43c9169f9fb520a584d2858847d24 (patch) | |
tree | 8460e983f4783e932df9fe9a068ba0d4c99538c0 /core/java/android/webkit/BrowserFrame.java | |
parent | 7b7029e0325b1a096bdbe5da3f8ec795c2aff9d6 (diff) | |
download | frameworks_base-408cf85207a43c9169f9fb520a584d2858847d24.zip frameworks_base-408cf85207a43c9169f9fb520a584d2858847d24.tar.gz frameworks_base-408cf85207a43c9169f9fb520a584d2858847d24.tar.bz2 |
Support the new dpi change in the WebView.
Fix http://b/issue?id=2071943
Diffstat (limited to 'core/java/android/webkit/BrowserFrame.java')
-rw-r--r-- | core/java/android/webkit/BrowserFrame.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/webkit/BrowserFrame.java b/core/java/android/webkit/BrowserFrame.java index dbddb2e..4204a1a 100644 --- a/core/java/android/webkit/BrowserFrame.java +++ b/core/java/android/webkit/BrowserFrame.java @@ -707,6 +707,10 @@ class BrowserFrame extends Handler { return value.string.toString(); } + private float density() { + return mContext.getResources().getDisplayMetrics().density; + } + //========================================================================== // native functions //========================================================================== |