mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
cb68ddb269
commit
a37298d7cc
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue