mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
properly update all colors if needed
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user