Implement count-down in inline player.

This commit is contained in:
Alex Hart
2021-07-07 16:02:47 -03:00
committed by Cody Henthorne
parent 3ac395d33e
commit 14484deabe

View File

@@ -113,7 +113,7 @@ class VoiceNotePlayerView @JvmOverloads constructor(
animateToggleToPause()
}
infoView.text = context.getString(R.string.VoiceNotePlayerView__s_dot_s, state.name, formatDuration(state.playbackDuration))
infoView.text = context.getString(R.string.VoiceNotePlayerView__s_dot_s, state.name, formatDuration(state.playbackDuration - state.playbackPosition))
speedView.setCurrentSpeed(state.playbackSpeed)
}