properly handle text color changing at the list widget

This commit is contained in:
tibbi 2018-12-09 12:17:35 +01:00
parent 2ebcdcd647
commit 3248d942cd
1 changed files with 2 additions and 0 deletions

View File

@ -123,6 +123,7 @@ class WidgetConfigureActivity : SimpleActivity() {
}
ChecklistAdapter(this, items, null, checklist_note_view, false) {}.apply {
updateTextColor(mTextColor)
checklist_note_view.adapter = this
}
text_note_view.beGone()
@ -180,6 +181,7 @@ class WidgetConfigureActivity : SimpleActivity() {
private fun updateTextColor() {
config_save.setTextColor(mTextColor)
text_note_view.setTextColor(mTextColor)
(checklist_note_view.adapter as? ChecklistAdapter)?.updateTextColor(mTextColor)
config_text_color.setFillWithStroke(mTextColor, Color.BLACK)
}