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

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);