Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
slymax committed Feb 25, 2020
1 parent 0a97135 commit b006e00
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/example/app/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/example/app/MyWebViewClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import android.webkit.WebView;
import android.webkit.WebViewClient;

@SuppressWarnings("unused")
class MyWebViewClient extends WebViewClient {

@Override
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}

Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b006e00

Please sign in to comment.