|
@@ -111,7 +111,9 @@ public class SimpleWebViewActivity extends AppCompatActivity {
|
|
|
protected void onClickOpenInBrowserBtn() {
|
|
|
Uri uri = Uri.parse(url);
|
|
|
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
|
|
|
- startActivity(intent);
|
|
|
+ if (intent.resolveActivity(getPackageManager()) != null) {
|
|
|
+ startActivity(intent);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
protected void setToolbarBgColorRes(@ColorRes int colorRes) {
|