Merge pull request #386 from FineFindus/feat/open-about-links
feat(about): try to open links in-app
This commit is contained in:
commit
3e36a72852
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue