Show number of pending operations in navigation menu

This commit is contained in:
M66B
2019-03-12 15:54:25 +00:00
parent c4961ce7d2
commit d4e8f8dc59
8 changed files with 1613 additions and 32 deletions

View File

@@ -56,6 +56,7 @@ public class EntityOperation {
@PrimaryKey(autoGenerate = true)
public Long id;
public Long account; // performance
@NonNull
public Long folder;
public Long message;
@@ -201,6 +202,7 @@ public class EntityOperation {
}
EntityOperation operation = new EntityOperation();
operation.account = message.account;
operation.folder = folder;
operation.message = message.id;
operation.name = name;
@@ -228,6 +230,7 @@ public class EntityOperation {
if (db.operation().getOperationCount(fid, EntityOperation.SYNC) == 0) {
EntityOperation operation = new EntityOperation();
operation.account = folder.account;
operation.folder = folder.id;
operation.message = null;
operation.name = SYNC;