Skip to content

Commit

Permalink
Handle SecurityException in CustomTabHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 authored and lognaturel committed Apr 9, 2020
1 parent 7ce5fd9 commit 4e278a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void openUri(Context context, Uri uri) {
try {
//open in external browser
context.startActivity(new Intent(Intent.ACTION_VIEW, uri));
} catch (ActivityNotFoundException e) {
} catch (ActivityNotFoundException | SecurityException e) {
//open in webview
Intent intent = new Intent(context, WebViewActivity.class);
intent.putExtra(OPEN_URL, uri.toString());
Expand Down

0 comments on commit 4e278a7

Please sign in to comment.