From c57d49b643acae6f8202f48f1a9738736defc76e Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 27 Apr 2019 15:53:33 +0200 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/SimpleTask.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/SimpleTask.java b/app/src/main/java/eu/faircode/email/SimpleTask.java index 40d1de0b54..a43443d195 100644 --- a/app/src/main/java/eu/faircode/email/SimpleTask.java +++ b/app/src/main/java/eu/faircode/email/SimpleTask.java @@ -78,6 +78,7 @@ public abstract class SimpleTask implements LifecycleObserver { try { onPreExecute(args); } catch (Throwable ex) { + onException(args, ex); Log.e(ex); } @@ -133,6 +134,7 @@ public abstract class SimpleTask implements LifecycleObserver { try { onPostExecute(args); } catch (Throwable ex) { + onException(args, ex); Log.e(ex); } finally { try { @@ -141,6 +143,7 @@ public abstract class SimpleTask implements LifecycleObserver { else onException(args, ex); } catch (Throwable ex) { + onException(args, ex); Log.e(ex); } }