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