mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
use proper text colors at the Recents list
This commit is contained in:
@ -65,16 +65,19 @@ class RecentCallsAdapter(activity: SimpleActivity, var recentCalls: ArrayList<Re
|
|||||||
view.apply {
|
view.apply {
|
||||||
item_recents_name.apply {
|
item_recents_name.apply {
|
||||||
text = call.name
|
text = call.name
|
||||||
|
setTextColor(textColor)
|
||||||
setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize)
|
setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize)
|
||||||
}
|
}
|
||||||
|
|
||||||
item_recents_date_time.apply {
|
item_recents_date_time.apply {
|
||||||
text = call.startTS.formatDateOrTime(context, true)
|
text = call.startTS.formatDateOrTime(context, true)
|
||||||
|
setTextColor(textColor)
|
||||||
setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize * 0.8f)
|
setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize * 0.8f)
|
||||||
}
|
}
|
||||||
|
|
||||||
item_recents_duration.apply {
|
item_recents_duration.apply {
|
||||||
text = call.duration.getFormattedDuration()
|
text = call.duration.getFormattedDuration()
|
||||||
|
setTextColor(textColor)
|
||||||
beVisibleIf(call.type != Calls.MISSED_TYPE && call.type != Calls.REJECTED_TYPE && call.duration > 0)
|
beVisibleIf(call.type != Calls.MISSED_TYPE && call.type != Calls.REJECTED_TYPE && call.duration > 0)
|
||||||
setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize * 0.8f)
|
setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize * 0.8f)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user