1
0
mirror of https://github.com/etesync/android synced 2025-01-23 14:10:54 +00:00

Edit task list: fix saving of task list colour.

Fixes #60
This commit is contained in:
Tom Hacohen 2019-01-29 23:07:26 +00:00
parent 96fc87cad4
commit e161233453

View File

@ -113,9 +113,13 @@ open class CreateCollectionActivity : BaseActivity() {
info.description = StringUtils.trimToNull(edit.text.toString())
if (ok) {
if (info.type == CollectionInfo.Type.CALENDAR) {
val view = findViewById<View>(R.id.color)
info.color = (view.background as ColorDrawable).color
when (info.type) {
CollectionInfo.Type.CALENDAR, CollectionInfo.Type.TASKS -> {
val view = findViewById<View>(R.id.color)
info.color = (view.background as ColorDrawable).color
}
CollectionInfo.Type.ADDRESS_BOOK -> {
}
}
info.selected = true