mirror of https://github.com/M66B/FairEmail.git
Snackbar on OOM
This commit is contained in:
parent
a0588d616f
commit
4214bc81f5
|
@ -1899,7 +1899,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
|
||||
@Override
|
||||
protected void onException(Bundle args, Throwable ex) {
|
||||
Log.unexpectedError(parentFragment.getParentFragmentManager(), ex);
|
||||
if (ex instanceof OutOfMemoryError)
|
||||
Snackbar.make(parentFragment.getView(), ex.getMessage(), Snackbar.LENGTH_LONG).show();
|
||||
else
|
||||
Log.unexpectedError(parentFragment.getParentFragmentManager(), ex);
|
||||
}
|
||||
}.execute(context, owner, args, "message:body");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue