Skip to content

Commit

Permalink
remove ignoring root from webview
Browse files Browse the repository at this point in the history
  • Loading branch information
trudyhood committed Dec 6, 2024
1 parent 61b1b79 commit c631d54
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions VpnHood.Client.App.Android.Common/AndroidAppWebViewClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ public override bool ShouldOverrideUrlLoading(WebView? webView, string? url)
if (webView == null || url == null || IsMainHost(url))
return false;

// ignore root
var uri = new Uri(url);
if (uri.AbsolutePath == "/" || string.IsNullOrEmpty(uri.AbsolutePath))
return false;

try {
var intent = new Intent(Intent.ActionView, Android.Net.Uri.Parse(url));
intent.SetFlags(ActivityFlags.NewTask);
Expand Down

0 comments on commit c631d54

Please sign in to comment.