Skip to content

Commit

Permalink
Redirect only if url should be redirected
Browse files Browse the repository at this point in the history
Signed-off-by: tobiasKaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky committed Mar 7, 2024
1 parent c15a114 commit 2456369
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,11 @@ public void onReceivedError(WebView view, WebResourceRequest request, WebResourc

@Override
public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
DisplayUtils.startLinkIntent(self, request.getUrl());
return true;
if (!request.isRedirect()) {
DisplayUtils.startLinkIntent(self, request.getUrl());
return true;
}
return false;
}
});

Expand Down

0 comments on commit 2456369

Please sign in to comment.