mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
040b0acb29
commit
0f45a283d1
|
@ -4,6 +4,10 @@
|
|||
|
||||
### [Yaverlandia](https://en.wikipedia.org/wiki/Yaverlandia)
|
||||
|
||||
### 1.1729
|
||||
|
||||
* Added miscellaneous option to disable showing the changelog
|
||||
|
||||
### 1.1728
|
||||
|
||||
* Prevent suggesting spam contacts
|
||||
|
|
|
@ -1853,10 +1853,12 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
});
|
||||
|
||||
for (TupleOperationEx.PartitionKey key : keys) {
|
||||
int ops;
|
||||
synchronized (partitions) {
|
||||
ops = partitions.get(key).size();
|
||||
Log.i(folder.name +
|
||||
" queuing partition=" + key +
|
||||
" operations=" + partitions.get(key).size());
|
||||
" operations=" + ops);
|
||||
}
|
||||
|
||||
final long serial = state.getSerial();
|
||||
|
@ -1865,7 +1867,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
crumb.put("account", folder.account == null ? null : Long.toString(folder.account));
|
||||
crumb.put("folder", folder.name + "/" + folder.type + ":" + folder.id);
|
||||
crumb.put("partition", key.toString());
|
||||
crumb.put("operations", Integer.toString(partitions.get(key).size()));
|
||||
crumb.put("operations", Integer.toString(ops));
|
||||
crumb.put("serial", Long.toString(serial));
|
||||
Log.breadcrumb("Queuing", crumb);
|
||||
|
||||
|
|
Loading…
Reference in New Issue