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

Commit 3ca196a1 authored by Nate Fischer's avatar Nate Fischer
Browse files

WebView: update docs for WebView#initSafeBrowsing

This fixes the documentation to specify that an application Context will
be used instead of an Activity Context (since only application Context
is needed).

Bug: 62192626, 63616213
Test: N/A
Change-Id: Ia34d2172be8cca7cb0751286c6c2388ff34d3f4a
parent 19b49f6c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1621,8 +1621,9 @@ public class WebView extends AbsoluteLayout
    }

    /**
     * Starts Safe Browsing initialization. This should only be called once.
     * @param context is the activity context the WebView will be used in.
     * Starts Safe Browsing initialization. This should only be called once. This does not require
     * an Activity Context, and will always use the application Context to do its work.
     * @param context Application Context.
     * @param callback will be called with the value true if initialization is
     * successful. The callback will be run on the UI thread.
     */