Added pull down to refresh

Single folders only for now
This commit is contained in:
M66B
2018-12-03 14:41:23 +01:00
parent 3dd522f6b8
commit d3032555ee
6 changed files with 241 additions and 182 deletions

View File

@@ -92,8 +92,10 @@ public class EntityOperation {
}
static void sync(DB db, long folder) {
if (db.operation().getOperationCount(folder, EntityOperation.SYNC) == 0)
if (db.operation().getOperationCount(folder, EntityOperation.SYNC) == 0) {
queue(db, folder, null, EntityOperation.SYNC, new JSONArray());
db.folder().setFolderSyncState(folder, "requested");
}
}
private static void queue(DB db, long folder, Long message, String name, JSONArray jargs) {