Use on demand sync when disabled

This commit is contained in:
M66B
2019-02-28 12:35:19 +00:00
parent 1324a364e8
commit 4b8a4b92bc
6 changed files with 28 additions and 19 deletions

View File

@@ -310,7 +310,8 @@ public class ServiceUI extends IntentService {
public static void sync(Context context, long folder) {
DB db = DB.getInstance(context);
db.folder().setFolderSyncState(folder, "requested");
db.folder().setFolderState(folder, "waiting");
db.folder().setFolderSyncState(folder, "manual");
context.startService(
new Intent(context, ServiceUI.class)