mirror of
https://github.com/etesync/android
synced 2025-05-14 21:08:49 +00:00
SyncManager: handle stoken being null (empty collection).
This commit is contained in:
parent
52b7a84a1a
commit
481dcc1944
@ -242,8 +242,10 @@ constructor(protected val context: Context, protected val account: Account, prot
|
|||||||
applyRemoteItems(itemList)
|
applyRemoteItems(itemList)
|
||||||
|
|
||||||
stoken = itemList.stoken
|
stoken = itemList.stoken
|
||||||
synchronized(etebaseLocalCache) {
|
if (stoken != null) {
|
||||||
etebaseLocalCache.collectionSaveStoken(cachedCollection.col.uid, stoken!!)
|
synchronized(etebaseLocalCache) {
|
||||||
|
etebaseLocalCache.collectionSaveStoken(cachedCollection.col.uid, stoken)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} while (!itemList!!.isDone)
|
} while (!itemList!!.isDone)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user