Small improvement

This commit is contained in:
M66B 2019-09-22 15:01:59 +02:00
parent 43440e3b07
commit a60d06c348
1 changed files with 3 additions and 3 deletions

View File

@ -106,8 +106,8 @@ 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);
onException(args, ex);
} }
executor.submit(new Runnable() { executor.submit(new Runnable() {
@ -162,8 +162,8 @@ 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);
onException(args, ex);
} finally { } finally {
try { try {
if (ex == null) { if (ex == null) {
@ -178,8 +178,8 @@ 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);
onException(args, ex);
} }
} }
} }