diff --git a/src/cheogram/java/eu/siacs/conversations/ui/WelcomeActivity.java b/src/cheogram/java/eu/siacs/conversations/ui/WelcomeActivity.java index fad6a203952c886f3cb05b616a90006b0e69d986..27f353ac73314ec04805613acfe3a9546b994352 100644 --- a/src/cheogram/java/eu/siacs/conversations/ui/WelcomeActivity.java +++ b/src/cheogram/java/eu/siacs/conversations/ui/WelcomeActivity.java @@ -160,9 +160,18 @@ public class WelcomeActivity extends XmppActivity implements XmppConnectionServi binding.buttonNext.setOnClickListener((v) -> binding.slideshowPager.setCurrentItem(binding.slideshowPager.getCurrentItem() + 1) ); - binding.buttonPrivacy.setOnClickListener((v) -> - startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://cheogram.com/android-privacy.html"))) - ); + binding.buttonPrivacy.setOnClickListener( + (v) -> { + try { + startActivity( + new Intent( + Intent.ACTION_VIEW, + Uri.parse("https://cheogram.com/android-privacy.html"))); + } catch (final ActivityNotFoundException e) { + Toast.makeText(this, R.string.no_application_found_to_open_link, Toast.LENGTH_SHORT) + .show(); + } + }); configureActionBar(getSupportActionBar(), false); binding.registerNewAccount.setOnClickListener(v -> { if (hasInviteUri()) {