|
|
@@ -95,10 +95,14 @@ public class BrowserActivity extends BaseActivity<ActivityBrowserBinding> {
|
|
|
binding.browserWebView.loadUrl(url);
|
|
|
return false;
|
|
|
} else {
|
|
|
- Intent intent = new Intent(Intent.ACTION_VIEW, request.getUrl());
|
|
|
- intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
- startActivity(intent);
|
|
|
- return true;
|
|
|
+ try {
|
|
|
+ Intent intent = new Intent(Intent.ACTION_VIEW, request.getUrl());
|
|
|
+ intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
+ startActivity(intent);
|
|
|
+ return true;
|
|
|
+ } catch (Exception e) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
});
|