mirror of
https://github.com/etesync/android
synced 2024-12-23 07:08:16 +00:00
CollectionEdit: update mtime when editing and deleting collections.
This commit is contained in:
parent
a632ab9cf7
commit
82ce1783bc
@ -155,6 +155,9 @@ class EditCollectionFragment(private val cachedCollection: CachedCollection, pri
|
||||
doAsync {
|
||||
try {
|
||||
val col = cachedCollection.col
|
||||
val meta = col.meta
|
||||
meta.mtime = System.currentTimeMillis()
|
||||
col.meta = meta
|
||||
col.delete()
|
||||
uploadCollection(col)
|
||||
val applicationContext = activity?.applicationContext
|
||||
@ -194,6 +197,8 @@ class EditCollectionFragment(private val cachedCollection: CachedCollection, pri
|
||||
edit = v.findViewById<EditText>(R.id.description)
|
||||
meta.description = StringUtils.trimToNull(edit.text.toString())
|
||||
|
||||
meta.mtime = System.currentTimeMillis()
|
||||
|
||||
if (ok) {
|
||||
when (meta.collectionType) {
|
||||
Constants.ETEBASE_TYPE_CALENDAR, Constants.ETEBASE_TYPE_TASKS -> {
|
||||
|
Loading…
Reference in New Issue
Block a user