mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-27 08:01:50 +01:00
Handle all unexpected errors
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user