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

Commit d23881e2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "WebView: document requirement for Activity Context"

parents 1e189360 674561a6
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
@@ -536,9 +536,13 @@ public class WebView extends AbsoluteLayout
    }

    /**
     * Constructs a new WebView with a Context object.
     * Constructs a new WebView with an Activity Context object.
     *
     * @param context a Context object used to access application assets
     * <p class="note"><b>Note:</b> WebView should always be instantiated with an Activity Context.
     * If instantiated with an Application Context, WebView will be unable to provide several
     * features, such as JavaScript dialogs and autofill.
     *
     * @param context an Activity Context to access application assets
     */
    public WebView(Context context) {
        this(context, null);
@@ -547,7 +551,7 @@ public class WebView extends AbsoluteLayout
    /**
     * Constructs a new WebView with layout parameters.
     *
     * @param context a Context object used to access application assets
     * @param context an Activity Context to access application assets
     * @param attrs an AttributeSet passed to our parent
     */
    public WebView(Context context, AttributeSet attrs) {
@@ -557,7 +561,7 @@ public class WebView extends AbsoluteLayout
    /**
     * Constructs a new WebView with layout parameters and a default style.
     *
     * @param context a Context object used to access application assets
     * @param context an Activity Context to access application assets
     * @param attrs an AttributeSet passed to our parent
     * @param defStyleAttr an attribute in the current theme that contains a
     *        reference to a style resource that supplies default values for
@@ -570,7 +574,7 @@ public class WebView extends AbsoluteLayout
    /**
     * Constructs a new WebView with layout parameters and a default style.
     *
     * @param context a Context object used to access application assets
     * @param context an Activity Context to access application assets
     * @param attrs an AttributeSet passed to our parent
     * @param defStyleAttr an attribute in the current theme that contains a
     *        reference to a style resource that supplies default values for
@@ -587,7 +591,7 @@ public class WebView extends AbsoluteLayout
    /**
     * Constructs a new WebView with layout parameters and a default style.
     *
     * @param context a Context object used to access application assets
     * @param context an Activity Context to access application assets
     * @param attrs an AttributeSet passed to our parent
     * @param defStyleAttr an attribute in the current theme that contains a
     *        reference to a style resource that supplies default values for
@@ -612,7 +616,7 @@ public class WebView extends AbsoluteLayout
     * time. This guarantees that these interfaces will be available when the JS
     * context is initialized.
     *
     * @param context a Context object used to access application assets
     * @param context an Activity Context to access application assets
     * @param attrs an AttributeSet passed to our parent
     * @param defStyleAttr an attribute in the current theme that contains a
     *        reference to a style resource that supplies default values for