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