From 3ca196a12d902e7b2a2136f33fc61decd7e13216 Mon Sep 17 00:00:00 2001 From: Nate Fischer Date: Wed, 12 Jul 2017 18:45:03 -0700 Subject: [PATCH] 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 --- core/java/android/webkit/WebView.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 5fed925dd9561..95d7e725d24d0 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. */