mirror of
https://github.com/vector-im/riotX-android
synced 2025-10-06 00:02:48 +02:00
Fixes wrong voice message being displayed and played on the timeline.
This commit is contained in:
committed by
Jorge Martin Espinosa
parent
ac7aa9f31d
commit
6c1016caff
1
changelog.d/6213.bugfix
Normal file
1
changelog.d/6213.bugfix
Normal file
@@ -0,0 +1 @@
|
||||
Fixes wrong voice message being displayed and played on the timeline.
|
@@ -24,7 +24,7 @@ import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.widget.ImageButton
|
||||
import android.widget.TextView
|
||||
import androidx.core.view.doOnLayout
|
||||
import androidx.core.view.doOnPreDraw
|
||||
import androidx.core.view.isVisible
|
||||
import com.airbnb.epoxy.EpoxyAttribute
|
||||
import com.airbnb.epoxy.EpoxyModelClass
|
||||
@@ -84,7 +84,7 @@ abstract class MessageVoiceItem : AbsMessageItem<MessageVoiceItem.Holder>() {
|
||||
holder.progressLayout.isVisible = false
|
||||
}
|
||||
|
||||
holder.voicePlaybackWaveform.doOnLayout {
|
||||
holder.voicePlaybackWaveform.doOnPreDraw {
|
||||
onWaveformViewReady(holder)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user