From acc8ce884a5325ade738b29d59e12d0f20a7af55 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 18 Jun 2021 12:19:49 +0200 Subject: [PATCH] Count started tasks only --- app/src/main/java/eu/faircode/email/SimpleTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/SimpleTask.java b/app/src/main/java/eu/faircode/email/SimpleTask.java index 5d08f029bb..5739c13236 100644 --- a/app/src/main/java/eu/faircode/email/SimpleTask.java +++ b/app/src/main/java/eu/faircode/email/SimpleTask.java @@ -320,7 +320,7 @@ public abstract class SimpleTask implements LifecycleObserver { int executing = 0; synchronized (tasks) { for (SimpleTask task : tasks) - if (task.count) + if (task.started > 0 && task.count) executing++; } return executing;