Skip to content

Commit b838aef

Browse files
author
Steve Block
committed
Fix use of API level in android.webkit JavaDoc
Bug: 5461416 Change-Id: Id17b10fec6bebc46260db6abe6df5f7d44a711ae
1 parent 1579a67 commit b838aef

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

core/java/android/webkit/WebView.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
* through a history, zoom in and out, perform text searches and more.</p>
5656
* <p>To enable the built-in zoom, set
5757
* {@link #getSettings() WebSettings}.{@link WebSettings#setBuiltInZoomControls(boolean)}
58-
* (introduced in API version 3).
58+
* (introduced in API level {@link android.os.Build.VERSION_CODES#CUPCAKE}).
5959
* <p>Note that, in order for your Activity to access the Internet and load web pages
6060
* in a WebView, you must add the {@code INTERNET} permissions to your
6161
* Android Manifest file:</p>
@@ -199,8 +199,9 @@
199199
* appearance on a medium density screen. So, it applies 1.5x scaling on a high density screen
200200
* (because its pixels are smaller) and 0.75x scaling on a low density screen (because its pixels
201201
* are bigger).
202-
* Starting with API Level 5 (Android 2.0), WebView supports DOM, CSS, and meta tag features to help
203-
* you (as a web developer) target screens with different screen densities.</p>
202+
* Starting with API level {@link android.os.Build.VERSION_CODES#ECLAIR}, WebView supports DOM, CSS,
203+
* and meta tag features to help you (as a web developer) target screens with different screen
204+
* densities.</p>
204205
* <p>Here's a summary of the features you can use to handle different screen densities:</p>
205206
* <ul>
206207
* <li>The {@code window.devicePixelRatio} DOM property. The value of this property specifies the
@@ -1528,13 +1529,13 @@ public void flingScroll(int vx, int vy) {
15281529
* Gets the zoom controls for the WebView, as a separate View. The caller is
15291530
* responsible for inserting this View into the layout hierarchy.
15301531
* <p/>
1531-
* API Level 3 introduced built-in zoom mechanisms for the WebView, as
1532-
* opposed to these separate zoom controls. The built-in mechanisms are
1533-
* preferred and can be enabled using
1534-
* {@link WebSettings#setBuiltInZoomControls}.
1532+
* API level {@link android.os.Build.VERSION_CODES#CUPCAKE} introduced
1533+
* built-in zoom mechanisms for the WebView, as opposed to these separate
1534+
* zoom controls. The built-in mechanisms are preferred and can be enabled
1535+
* using {@link WebSettings#setBuiltInZoomControls}.
15351536
*
15361537
* @deprecated The built-in zoom mechanisms are preferred.
1537-
* @hide since API version 16.
1538+
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN}
15381539
*/
15391540
@Deprecated
15401541
public View getZoomControls() {

0 commit comments

Comments
 (0)