From 2ef0ab5357520f8eb697b39d1b6c441cfd387667 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 18 Dec 2019 17:43:28 +0100 Subject: [PATCH] Fixed deleting of accounts --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 7126080072..a6f6d683ea 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -186,6 +186,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences int operations = 0; boolean runService = false; for (TupleAccountNetworkState current : accountNetworkStates) { + Log.d("### evaluating " + current); if (current.accountState.shouldRun(current.enabled)) runService = true; if ("connected".equals(current.accountState.state)) @@ -240,13 +241,13 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences stop(prev); if (current.canRun()) start(current, current.accountState.isEnabled(current.enabled) || sync); - if (current.accountState.tbd != null) - delete(current); } } if (current.accountState.tbd == null) accountStates.add(current); + else + delete(current); } if (runService) {