Snackbar on OOM

This commit is contained in:
M66B 2020-02-14 11:23:52 +01:00
parent a0588d616f
commit 4214bc81f5
1 changed files with 4 additions and 1 deletions

View File

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