First sync failures on first account addition.

pull/131/head
Tom Hacohen 4 years ago
parent cea7f8fdc6
commit 251e610fe8

@ -90,11 +90,11 @@ class EtebaseLocalCache private constructor(context: Context, username: String)
fun collectionSet(colMgr: CollectionManager, collection: Collection) {
val colDir = File(colsDir, collection.uid)
colDir.mkdir()
colDir.mkdirs()
val colFile = File(colDir, "col")
colFile.writeBytes(colMgr.cacheSaveWithContent(collection))
val itemsDir = getCollectionItemsDir(collection.uid)
itemsDir.mkdir()
itemsDir.mkdirs()
}
fun collectionUnset(colMgr: CollectionManager, colUid: String) {

Loading…
Cancel
Save