update config

This commit is contained in:
slymax 2020-02-25 21:35:39 +01:00
parent 0a97135af1
commit b006e00995
5 changed files with 6 additions and 5 deletions

View File

@ -15,7 +15,7 @@ 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 **13** with your custom hostname
2. open the `MyWebViewClient.java` file and replace `example.com` on line **14** with your custom hostname
```java
if (Objects.requireNonNull(Uri.parse(url).getHost()).endsWith("example.com")) {

View File

@ -11,8 +11,8 @@ public class MainActivity extends Activity {
private WebView mWebView;
@SuppressLint("SetJavaScriptEnabled")
@Override
@SuppressLint("SetJavaScriptEnabled")
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

View File

@ -5,6 +5,7 @@ import android.net.Uri;
import android.webkit.WebView;
import android.webkit.WebViewClient;
@SuppressWarnings("unused")
class MyWebViewClient extends WebViewClient {
@Override

View File

@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.android.tools.build:gradle:3.6.0'
}
}

View File

@ -1,6 +1,6 @@
#Mon Sep 23 01:07:03 CEST 2019
#Tue Feb 25 21:13:29 CET 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip