don't use debounce in trashy case

This commit is contained in:
2026-06-23 20:11:48 +03:00
parent 16a78e8f6f
commit 11f0db9c0a
3 changed files with 7 additions and 11 deletions
@@ -56,7 +56,8 @@ class OfflineVideoInteractor(
}
)
}
} ?: emptyFlow()
}
?: emptyFlow()
suspend fun remove(video: OfflineVideo) {
offlineStorage?.remove(video)
@@ -1,8 +1,6 @@
package ru.shadowsparky.vbox.shared.presentation.offline
import com.arkivanov.decompose.ComponentContext
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.flow.debounce
import kotlinx.coroutines.launch
import org.koin.core.annotation.Factory
import org.koin.core.annotation.Named
@@ -22,8 +20,7 @@ class OfflineVideoComponent(
private val showPlayer: (Route.Overview.Player) -> Unit,
val onBack: () -> Unit
) : ComponentContext by context {
@OptIn(FlowPreview::class)
val info = interactor.info.debounce(300)
val info = interactor.info
private val componentScope = createComponentScope()
fun play(item: OfflineVideo) {