File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import android.graphics.Canvas
5
5
import android.util.AttributeSet
6
6
import android.widget.RelativeLayout
7
7
import androidx.core.view.isVisible
8
+ import androidx.media3.common.C
8
9
import dagger.hilt.android.AndroidEntryPoint
9
10
import network.loki.messenger.R
10
11
import network.loki.messenger.databinding.ViewVoiceMessageBinding
@@ -78,7 +79,9 @@ class VoiceMessageView @JvmOverloads constructor(
78
79
79
80
override fun onPlayerStart (player : AudioSlidePlayer ) {
80
81
isPlaying = true
81
- durationMS = player.duration
82
+ if (player.duration != C .TIME_UNSET ) {
83
+ durationMS = player.duration
84
+ }
82
85
}
83
86
84
87
override fun onPlayerStop (player : AudioSlidePlayer ) { isPlaying = false }
You can’t perform that action at this time.
0 commit comments