Use accent color intead of bold in Call History time column if a call
in that call row has been recorded
This commit is contained in:
@@ -2,7 +2,6 @@ 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
|
||||||
@@ -11,6 +10,7 @@ import android.widget.ArrayAdapter
|
|||||||
import android.widget.ImageView
|
import android.widget.ImageView
|
||||||
import android.widget.LinearLayout
|
import android.widget.LinearLayout
|
||||||
import android.widget.TextView
|
import android.widget.TextView
|
||||||
|
import androidx.core.content.ContextCompat
|
||||||
|
|
||||||
class CallListAdapter(private val ctx: Context, private val account: Account,
|
class CallListAdapter(private val ctx: Context, private val account: Account,
|
||||||
private val rows: ArrayList<CallRow>) :
|
private val rows: ArrayList<CallRow>) :
|
||||||
@@ -49,7 +49,7 @@ class CallListAdapter(private val ctx: Context, private val account: Account,
|
|||||||
var count = 1
|
var count = 1
|
||||||
for (d in callRow.details) {
|
for (d in callRow.details) {
|
||||||
if (d.recording[0] != "")
|
if (d.recording[0] != "")
|
||||||
viewHolder.timeView.typeface = Typeface.DEFAULT_BOLD
|
viewHolder.timeView.setTextColor(ContextCompat.getColor(context, R.color.colorAccent))
|
||||||
if (count > 3) {
|
if (count > 3) {
|
||||||
viewHolder.etcView.text = "..."
|
viewHolder.etcView.text = "..."
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user