summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Torne (Richard Coles) <torne@google.com> 2019-11-05 15:14:34 -0800
committer android-build-merger <android-build-merger@google.com> 2019-11-05 15:14:34 -0800
commit016ee6777e00e1570efe6d9c75cfe40807784ccd (patch)
tree7848cb6749779d245e9af387abecc05f1bef4a7e
parent1c93e1d26cff67b48213139c81625df760f5e174 (diff)
parentb0bcbb0c351655ae3b1a6a7ca9dae0e57cd6d363 (diff)
Merge "WebView: note deprecation of onscreen zoom controls." into qt-dev
am: b0bcbb0c35 Change-Id: If316cbd120ac807313f4d89a212be01b5e4a313e
-rw-r--r--core/java/android/webkit/WebSettings.java7
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
*/