~singpolyma/cheogram-android

176cbc9a28a814f57e6d410139dda427b2ababb6 — Stephen Paul Weber 1 year, 1 month ago 5c4bf9e
Fix crash trying to open link when no app for it
1 files changed, 5 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java
M src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java => src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java +5 -1
@@ 648,7 648,11 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp
                    switchToConversation(xmppConnectionService.findOrCreateConversation(account, Jid.of(uri.getSchemeSpecificPart()), false, true));
                } else {
                    Intent intent = new Intent(Intent.ACTION_VIEW, uri);
                    startActivity(intent);
                    try {
                        startActivity(intent);
                    } catch (ActivityNotFoundException e) {
                        Toast.makeText(this, R.string.no_application_found_to_open_link, Toast.LENGTH_SHORT).show();
                    }
                }
            });
            binding.profileItems.setOnItemLongClickListener((a0, v, pos, a3) -> {