use proper text colors at the Recents list

This commit is contained in:
tibbi 2020-05-10 23:58:01 +02:00
parent 4d4b54d855
commit 6a6fbfdcd4

View File

@ -65,16 +65,19 @@ class RecentCallsAdapter(activity: SimpleActivity, var recentCalls: ArrayList<Re
view.apply {
item_recents_name.apply {
text = call.name
setTextColor(textColor)
setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize)
}
item_recents_date_time.apply {
text = call.startTS.formatDateOrTime(context, true)
setTextColor(textColor)
setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize * 0.8f)
}
item_recents_duration.apply {
text = call.duration.getFormattedDuration()
setTextColor(textColor)
beVisibleIf(call.type != Calls.MISSED_TYPE && call.type != Calls.REJECTED_TYPE && call.duration > 0)
setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize * 0.8f)
}