mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-30 17:40:34 +01:00
Prevent crash
This commit is contained in:
@@ -1014,7 +1014,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
cursor.close();
|
||||
}
|
||||
|
||||
context.startActivity(edit);
|
||||
PackageManager pm = context.getPackageManager();
|
||||
if (edit.resolveActivity(pm) == null)
|
||||
Toast.makeText(context, R.string.title_no_contacts, Toast.LENGTH_LONG).show();
|
||||
else
|
||||
context.startActivity(edit);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user