Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8887b2b4 authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

Specify that WebSettings.{get|set}DefaultZoom are not recommented to use

Alternatives are advised in the JavaDoc. The settings will be marked as
deprecated in the K release.

Bug: 9004875

Change-Id: I033be03f14244390016cb2b40337aab1df945465
parent 66beb2fd
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -500,6 +500,12 @@ public abstract class WebSettings {
     * Sets the default zoom density of the page. This must be called from the UI
     * thread. The default is {@link ZoomDensity#MEDIUM}.
     *
     * This setting is not recommended for use in new applications.  If the WebView
     * is utilized to display mobile-oriented pages, the desired effect can be achieved by
     * adjusting 'width' and 'initial-scale' attributes of page's 'meta viewport'
     * tag. For pages lacking the tag, {@link android.webkit.WebView#setInitialScale}
     * and {@link #setUseWideViewPort} can be used.
     *
     * @param zoom the zoom density
     */
    public void setDefaultZoom(ZoomDensity zoom) {
@@ -510,6 +516,8 @@ public abstract class WebSettings {
     * Gets the default zoom density of the page. This should be called from
     * the UI thread.
     *
     * This setting is not recommended for use in new applications.
     *
     * @return the zoom density
     * @see #setDefaultZoom
     */