diff options
| author | 2019-11-05 23:33:07 +0000 | |
|---|---|---|
| committer | 2019-11-05 23:33:07 +0000 | |
| commit | e63c15945f3ac0c613eaef16702bfc130178d35f (patch) | |
| tree | fee75dcb340a87a56dbdef3ba251335827a30b5f | |
| parent | 689c2cfbaaf0283f9a0449be6714d3bc1b1e2d6b (diff) | |
| parent | ef3c3020b56483abb50b4ca7ae5c6eeed8206fbc (diff) | |
Merge "Merge "WebView: note deprecation of onscreen zoom controls." into qt-dev am: b0bcbb0c35 am: 016ee6777e am: 30c6079772 am: a9395a3a0b"
| -rw-r--r-- | core/java/android/webkit/WebSettings.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/webkit/WebSettings.java b/core/java/android/webkit/WebSettings.java index 7282008f7e3a..2895621f962a 100644 --- a/core/java/android/webkit/WebSettings.java +++ b/core/java/android/webkit/WebSettings.java @@ -328,6 +328,9 @@ public abstract class WebSettings { * <p> * The built-in mechanisms are the only currently supported zoom * mechanisms, so it is recommended that this setting is always enabled. + * However, on-screen zoom controls are deprecated in Android (see + * {@link android.widget.ZoomButtonsController}) so it's recommended to + * disable {@link #setDisplayZoomControls}. * * @param enabled whether the WebView should use its built-in zoom mechanisms */ @@ -347,7 +350,9 @@ public abstract class WebSettings { /** * Sets whether the WebView should display on-screen zoom controls when * using the built-in zoom mechanisms. See {@link #setBuiltInZoomControls}. - * The default is {@code true}. + * The default is {@code true}. However, on-screen zoom controls are deprecated + * in Android (see {@link android.widget.ZoomButtonsController}) so it's + * recommended to set this to {@code false}. * * @param enabled whether the WebView should display on-screen zoom controls */ |