refactor(SettingsServerAboutFragment): always use UiUtils.openURL
This commit is contained in:
@@ -83,11 +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")){
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user