Skip idle for transient accounts

pull/190/head
M66B 4 years ago
parent ebd9f09683
commit bc9edd087b

@ -1288,6 +1288,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
});
// Idle folder
if (!isTransient(account)) {
Thread idler = new Thread(new Runnable() {
@Override
public void run() {
@ -1312,6 +1313,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
idler.setPriority(THREAD_PRIORITY_BACKGROUND);
idler.start();
idlers.add(idler);
}
if (sync && folder.selectable)
EntityOperation.sync(this, folder.id, false, force && !forced);

Loading…
Cancel
Save