Gallery: Voice message: render duration when the playback is not started.
This commit is contained in:
parent
88ea0fb082
commit
ac27d1d474
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ private fun VoiceInfoRow(
|
||||||
}
|
}
|
||||||
Spacer(Modifier.width(8.dp))
|
Spacer(Modifier.width(8.dp))
|
||||||
Text(
|
Text(
|
||||||
text = state.time,
|
text = if (state.progress > 0f) state.time else voice.duration ?: state.time,
|
||||||
color = ElementTheme.colors.textSecondary,
|
color = ElementTheme.colors.textSecondary,
|
||||||
style = ElementTheme.typography.fontBodyMdMedium,
|
style = ElementTheme.typography.fontBodyMdMedium,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue