Merge pull request #386 from FineFindus/feat/open-about-links

feat(about): try to open links in-app
This commit is contained in:
LucasGGamerM 2024-05-05 16:06:22 -03:00 committed by GitHub
commit 3e36a72852
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public class SettingsServerAboutFragment extends LoaderFragment{
public boolean shouldOverrideUrlLoading(WebView view, String url){
Uri uri=Uri.parse(url);
if(uri.getScheme().equals("http") || uri.getScheme().equals("https")){
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);