mirror of
https://github.com/etesync/android
synced 2024-12-22 14:48:11 +00:00
Sync: don't override item UID if already set.
This fixes an issue with tasks.org tasks getting mangled. Fixes #161 and potentially fixes #159.
This commit is contained in:
parent
784fb7ee82
commit
4e472e5ff3
@ -651,7 +651,7 @@ constructor(protected val context: Context, protected val account: Account, prot
|
||||
item = cacheItem.item
|
||||
itemUpdateMtime(item)
|
||||
} else {
|
||||
val uid = UUID.randomUUID().toString()
|
||||
val uid = local.uuid ?: UUID.randomUUID().toString()
|
||||
val meta = ItemMetadata()
|
||||
meta.name = uid
|
||||
meta.mtime = System.currentTimeMillis()
|
||||
|
Loading…
Reference in New Issue
Block a user