Handle all unexpected errors

This commit is contained in:
M66B
2018-12-11 11:31:31 +01:00
parent 3f93a999fa
commit f14de224aa
5 changed files with 28 additions and 7 deletions

View File

@@ -123,6 +123,11 @@ public class AdapterOperation extends RecyclerView.Adapter<AdapterOperation.View
.putExtra("folder", folder.id)
.putExtra("outgoing", folder.isOutgoing()));
}
@Override
protected void onException(Bundle args, Throwable ex) {
Helper.unexpectedError(context, owner, ex);
}
}.load(context, owner, args);
} else {
Bundle args = new Bundle();
@@ -144,6 +149,11 @@ public class AdapterOperation extends RecyclerView.Adapter<AdapterOperation.View
.putExtra("thread", message.thread)
.putExtra("id", message.id));
}
@Override
protected void onException(Bundle args, Throwable ex) {
Helper.unexpectedError(context, owner, ex);
}
}.load(context, owner, args);
}
}