Small improvement

pull/155/head
M66B 6 years ago
parent be68d49904
commit c57d49b643

@ -78,6 +78,7 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
try { try {
onPreExecute(args); onPreExecute(args);
} catch (Throwable ex) { } catch (Throwable ex) {
onException(args, ex);
Log.e(ex); Log.e(ex);
} }
@ -133,6 +134,7 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
try { try {
onPostExecute(args); onPostExecute(args);
} catch (Throwable ex) { } catch (Throwable ex) {
onException(args, ex);
Log.e(ex); Log.e(ex);
} finally { } finally {
try { try {
@ -141,6 +143,7 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
else else
onException(args, ex); onException(args, ex);
} catch (Throwable ex) { } catch (Throwable ex) {
onException(args, ex);
Log.e(ex); Log.e(ex);
} }
} }

Loading…
Cancel
Save