Skip to content

Commit

Permalink
refactor(SettingsServerAboutFragment): always use UiUtils.openURL
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed May 5, 2024
1 parent 86506f9 commit 7801d28
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,7 @@ public void onPageFinished(WebView view, String url){
public boolean shouldOverrideUrlLoading(WebView view, String url){
Uri uri=Uri.parse(url);
if(uri.getScheme().equals("http") || uri.getScheme().equals("https")){
if(uri.getHost()!=null && uri.getHost().equals(instance.uri))
//try to open linked accounts, etc in the app
UiUtils.openURL(getActivity(),accountID, url);
else
UiUtils.launchWebBrowser(getActivity(), url);
UiUtils.openURL(getActivity(),accountID, url);
}else{
Intent intent=new Intent(Intent.ACTION_VIEW, uri);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Expand Down

0 comments on commit 7801d28

Please sign in to comment.