Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
restore url-prefix regex to v2.6.0 functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwi-josh committed Sep 6, 2018
1 parent e09dcc2 commit 1f6108f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/android/cl/kunder/webview/WebViewActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public void onCreate(Bundle savedInstanceState) {
if(shouldShowLoading){
showLoading();
}
loadUrl((url.matches("^(.://|javascript:)[\\s\\S]$") ? "" : "file:///android_asset/www/" + (isPluginCryptFileActive() ? "+++/" : "")) + url);

loadUrl((url.matches("^(.*://|javascript:)[\\s\\S]*$") ? "" : "file:///android_asset/www/" + (isPluginCryptFileActive() ? "+++/" : "")) + url);
}

public static boolean showLoading() {
Expand All @@ -45,7 +45,7 @@ public static boolean showLoading() {
public void run() {
dialog = new Dialog(activity2,android.R.style.Theme_Translucent_NoTitleBar);
ProgressBar progressBar = new ProgressBar(activity2,null,android.R.attr.progressBarStyle);

LinearLayout linearLayout = new LinearLayout(activity2);
linearLayout.setOrientation(LinearLayout.VERTICAL);
RelativeLayout layoutPrincipal = new RelativeLayout(activity2);
Expand Down

0 comments on commit 1f6108f

Please sign in to comment.