Prevent crash

This commit is contained in:
M66B
2021-06-09 07:41:40 +02:00
parent e1c00ec226
commit 9ff5107d34
2 changed files with 41 additions and 2 deletions

View File

@@ -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);