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

Commit c5ec7451 authored by Nate Fischer's avatar Nate Fischer
Browse files

WebView: remove @Nullable from SB whitelist

This removes the @Nullable annotation from
WebView#setSafeBrowsingWhitelist's List parameter. This does not need to
be Nullable, since the whitelist can be unset just as easily by passing
an empty list.

Bug: 63084528
Test: N/A
Change-Id: Ica9d67bc907b16e89d0a1b6a15d91e21f74cc4c9
parent 3698fc8e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1649,7 +1649,7 @@ public class WebView extends AbsoluteLayout
     * will be called with false if any URLs are malformed. The callback will be run on the UI
     * thread.
     */
    public static void setSafeBrowsingWhitelist(@Nullable List<String> urls,
    public static void setSafeBrowsingWhitelist(@NonNull List<String> urls,
            @Nullable ValueCallback<Boolean> callback) {
        getFactory().getStatics().setSafeBrowsingWhitelist(urls, callback);
    }