mirror of
https://github.com/etesync/android
synced 2024-12-23 07:08:16 +00:00
First sync failures on first account addition.
This commit is contained in:
parent
cea7f8fdc6
commit
251e610fe8
@ -90,11 +90,11 @@ class EtebaseLocalCache private constructor(context: Context, username: String)
|
|||||||
|
|
||||||
fun collectionSet(colMgr: CollectionManager, collection: Collection) {
|
fun collectionSet(colMgr: CollectionManager, collection: Collection) {
|
||||||
val colDir = File(colsDir, collection.uid)
|
val colDir = File(colsDir, collection.uid)
|
||||||
colDir.mkdir()
|
colDir.mkdirs()
|
||||||
val colFile = File(colDir, "col")
|
val colFile = File(colDir, "col")
|
||||||
colFile.writeBytes(colMgr.cacheSaveWithContent(collection))
|
colFile.writeBytes(colMgr.cacheSaveWithContent(collection))
|
||||||
val itemsDir = getCollectionItemsDir(collection.uid)
|
val itemsDir = getCollectionItemsDir(collection.uid)
|
||||||
itemsDir.mkdir()
|
itemsDir.mkdirs()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun collectionUnset(colMgr: CollectionManager, colUid: String) {
|
fun collectionUnset(colMgr: CollectionManager, colUid: String) {
|
||||||
|
Loading…
Reference in New Issue
Block a user