mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 15:32:52 +00:00
Simplification
This commit is contained in:
parent
02dec069d0
commit
11a79c9e41
1 changed files with 2 additions and 3 deletions
|
@ -1127,7 +1127,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||||
Collections.sort(folders, folders.get(0).getComparator(this));
|
Collections.sort(folders, folders.get(0).getComparator(this));
|
||||||
|
|
||||||
for (final EntityFolder folder : folders) {
|
for (final EntityFolder folder : folders) {
|
||||||
if (folder.synchronize && !folder.poll && capIdle && sync) {
|
if (folder.selectable && folder.synchronize && !folder.poll && capIdle && sync) {
|
||||||
Log.i(account.name + " sync folder " + folder.name);
|
Log.i(account.name + " sync folder " + folder.name);
|
||||||
|
|
||||||
db.folder().setFolderState(folder.id, "connecting");
|
db.folder().setFolderState(folder.id, "connecting");
|
||||||
|
@ -1307,7 +1307,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||||
idler.start();
|
idler.start();
|
||||||
idlers.add(idler);
|
idlers.add(idler);
|
||||||
|
|
||||||
if (sync && folder.selectable)
|
|
||||||
EntityOperation.sync(this, folder.id, false, force && !forced);
|
EntityOperation.sync(this, folder.id, false, force && !forced);
|
||||||
|
|
||||||
if (capNotify && subscriptions && EntityFolder.INBOX.equals(folder.type))
|
if (capNotify && subscriptions && EntityFolder.INBOX.equals(folder.type))
|
||||||
|
|
Loading…
Reference in a new issue