don't use debounce in trashy case
This commit is contained in:
+2
-1
@@ -56,7 +56,8 @@ class OfflineVideoInteractor(
|
||||
}
|
||||
)
|
||||
}
|
||||
} ?: emptyFlow()
|
||||
}
|
||||
?: emptyFlow()
|
||||
|
||||
suspend fun remove(video: OfflineVideo) {
|
||||
offlineStorage?.remove(video)
|
||||
|
||||
+1
-4
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user