mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Prevent crash
This commit is contained in:
@@ -2665,7 +2665,17 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
"text/calendar".equals(attachment.getMimeType()))
|
||||
calendar = attachment;
|
||||
}
|
||||
adapterAttachment.set(a);
|
||||
|
||||
rvAttachment.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
adapterAttachment.set(a);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (calendar != null && bind_extras)
|
||||
bindCalendar(message, calendar);
|
||||
|
||||
Reference in New Issue
Block a user