From 5c8b5286ab8b6aea43cd872938a39a5842c08d9a Mon Sep 17 00:00:00 2001 From: slymax Date: Mon, 21 Jan 2019 20:45:33 +0100 Subject: [PATCH] update readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6ab9c2f..b05c18f 100755 --- a/README.md +++ b/README.md @@ -15,10 +15,10 @@ If you want to create an app that displays the content of a remote website mWebView.setWebViewClient(new MyWebViewClient()); ``` -2. open the `MyWebViewClient.java` file and replace `example.com` on line **12** with your custom hostname +2. open the `MyWebViewClient.java` file and replace `example.com` on line **14** with your custom hostname ```java - if (Uri.parse(url).getHost().endsWith("example.com")) { + if (Objects.requireNonNull(Uri.parse(url).getHost()).endsWith("example.com")) { ``` ### Using a local source