Merge pull request #659 from hjubb/fix_audio_player_icon

Fix Voice Message Icon Bug
This commit is contained in:
Niels Andriesse 2021-07-14 14:43:41 +10:00 committed by GitHub
commit e2b07f1151
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,9 @@ class VoiceMessageView : LinearLayout, AudioSlidePlayer.Listener {
}
}
override fun onPlayerStart(player: AudioSlidePlayer) {}
override fun onPlayerStart(player: AudioSlidePlayer) {
isPlaying = true
}
override fun onPlayerProgress(player: AudioSlidePlayer, progress: Double, unused: Long) {
if (progress == 1.0) {
@ -102,7 +104,6 @@ class VoiceMessageView : LinearLayout, AudioSlidePlayer.Listener {
}
override fun onPlayerStop(player: AudioSlidePlayer) {
Log.d("Loki", "Player stopped")
isPlaying = false
}