mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-15 01:57:46 +00:00
fix: prevent crash in audio view
This commit is contained in:
@@ -45,7 +45,9 @@ class VoiceMessageView : LinearLayout, AudioSlidePlayer.Listener {
|
||||
val player = AudioSlidePlayer.createFor(context, audio, this)
|
||||
this.player = player
|
||||
isPreparing = true
|
||||
player.play(0.0)
|
||||
if (!audio.isPendingDownload && !audio.isInProgress) {
|
||||
player.play(0.0)
|
||||
}
|
||||
voiceMessageViewLoader.isVisible = audio.isPendingDownload
|
||||
val cornerRadii = MessageBubbleUtilities.calculateRadii(context, isStartOfMessageCluster, isEndOfMessageCluster, message.isOutgoing)
|
||||
cornerMask.setTopLeftRadius(cornerRadii[0])
|
||||
|
Reference in New Issue
Block a user