Skip progress when destroyed

pull/210/head
M66B 2 years ago
parent 39d26f9990
commit d90acfbb46

@ -408,7 +408,8 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
@Override
public void run() {
try {
onProgress(status, data);
if (!destroyed)
onProgress(status, data);
} catch (Throwable ex) {
Log.e(ex);
}

Loading…
Cancel
Save