In Call History, show time in bold if a call was recorded

This commit is contained in:
Juha Heinanen
2023-03-13 04:19:09 +02:00
parent 12df05a3f8
commit 337a932e85

View File

@ -2,6 +2,7 @@ package com.tutpro.baresip
import android.content.Context
import android.content.Intent
import android.graphics.Typeface
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
@ -47,9 +48,11 @@ class CallListAdapter(private val ctx: Context, private val account: Account,
viewHolder.directionsView.removeAllViews()
var count = 1
for (d in callRow.details) {
if (d.recording != "")
viewHolder.timeView.typeface = Typeface.DEFAULT_BOLD
if (count > 3) {
viewHolder.etcView.text = "..."
break
continue
}
val dirView = ImageView(ctx)
val params = LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,