mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-02-15 02:50:53 +01:00
use proper text colors at the Recents list
This commit is contained in:
parent
4d4b54d855
commit
6a6fbfdcd4
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user