Time of recorded call is now shown in accent color
This commit is contained in:
@@ -81,7 +81,7 @@ class CallDetailsAdapter(private val ctx: Context, private val rows: ArrayList<C
|
|||||||
viewHolder.durationView.text = DateUtils.formatElapsedTime(duration)
|
viewHolder.durationView.text = DateUtils.formatElapsedTime(duration)
|
||||||
val recording = rows[position].recording
|
val recording = rows[position].recording
|
||||||
if (recording[0] != "") {
|
if (recording[0] != "") {
|
||||||
viewHolder.durationView.typeface = Typeface.DEFAULT_BOLD
|
viewHolder.durationView.setTextColor(ContextCompat.getColor(context, R.color.colorAccent))
|
||||||
viewHolder.durationView.setOnClickListener {
|
viewHolder.durationView.setOnClickListener {
|
||||||
if (!decPlayer.isPlaying && !encPlayer.isPlaying) {
|
if (!decPlayer.isPlaying && !encPlayer.isPlaying) {
|
||||||
decPlayer.reset()
|
decPlayer.reset()
|
||||||
|
|||||||
Reference in New Issue
Block a user