diff options
| author | 2017-07-12 18:45:03 -0700 | |
|---|---|---|
| committer | 2017-07-12 18:46:50 -0700 | |
| commit | 3ca196a12d902e7b2a2136f33fc61decd7e13216 (patch) | |
| tree | c0d7d31bd8adacf591294bb11824f9cbc55bb0c5 | |
| parent | 19b49f6c3ca051f91243c290e7868f7e83ba7005 (diff) | |
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
| -rw-r--r-- | core/java/android/webkit/WebView.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 5fed925dd956..95d7e725d24d 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -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. */ |