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
This commit is contained in:
Nate Fischer
2017-07-12 18:45:03 -07:00
parent 19b49f6c3c
commit 3ca196a12d

View File

@@ -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.
*/