Fixed task count

This commit is contained in:
M66B 2021-06-20 20:58:52 +02:00
parent 7970ff9a31
commit 635115730a
1 changed files with 2 additions and 2 deletions

View File

@ -139,8 +139,6 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
tasks.add(this);
}
updateTaskCount(context);
try {
onPreExecute(args);
} catch (Throwable ex) {
@ -253,6 +251,8 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
});
}
});
updateTaskCount(context);
}
void cancel(Context context) {