update config
This commit is contained in:
parent
0a97135af1
commit
b006e00995
@ -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")) {
|
||||
|
@ -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);
|
||||
|
@ -5,6 +5,7 @@ import android.net.Uri;
|
||||
import android.webkit.WebView;
|
||||
import android.webkit.WebViewClient;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
class MyWebViewClient extends WebViewClient {
|
||||
|
||||
@Override
|
||||
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
|
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user