properly update all colors if needed

This commit is contained in:
tibbi
2020-05-11 11:49:55 +02:00
parent 52f3acd246
commit 496a5469ae
5 changed files with 76 additions and 3 deletions

View File

@ -30,6 +30,15 @@ class RecentsFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
}
}
override fun textColorChanged(color: Int) {
(recents_list?.adapter as? RecentCallsAdapter)?.apply {
initDrawables()
updateTextColor(color)
}
}
override fun primaryColorChanged(color: Int) {}
fun updateRecents(recents: ArrayList<RecentCall>) {
if (recents.isEmpty()) {
recents_placeholder.beVisible()