Do not allow to flow RTL after summarized, playback time always flows LTR.

This commit is contained in:
Onuray Sahin 2022-03-04 17:47:34 +03:00
parent e09b123a91
commit 4cb432e497

View file

@ -129,6 +129,7 @@ class AudioWaveformView @JvmOverloads constructor(
}
private fun List<FFT>.summarize(target: Int): List<FFT> {
flow = Flow.LTR
val result = mutableListOf<FFT>()
if (size <= target) {
result.addAll(this)