In Call History, show time in bold if a call was recorded
This commit is contained in:
@@ -2,6 +2,7 @@ package com.tutpro.baresip
|
|||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
|
import android.graphics.Typeface
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
@@ -47,9 +48,11 @@ class CallListAdapter(private val ctx: Context, private val account: Account,
|
|||||||
viewHolder.directionsView.removeAllViews()
|
viewHolder.directionsView.removeAllViews()
|
||||||
var count = 1
|
var count = 1
|
||||||
for (d in callRow.details) {
|
for (d in callRow.details) {
|
||||||
|
if (d.recording != "")
|
||||||
|
viewHolder.timeView.typeface = Typeface.DEFAULT_BOLD
|
||||||
if (count > 3) {
|
if (count > 3) {
|
||||||
viewHolder.etcView.text = "..."
|
viewHolder.etcView.text = "..."
|
||||||
break
|
continue
|
||||||
}
|
}
|
||||||
val dirView = ImageView(ctx)
|
val dirView = ImageView(ctx)
|
||||||
val params = LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
|
val params = LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
|
||||||
|
|||||||
Reference in New Issue
Block a user