Change delay() time (#741)

This commit is contained in:
Dexroneum 2022-11-29 21:03:29 +00:00 committed by GitHub
parent f7ea3b6d7a
commit 3db190138a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,7 @@ import kotlinx.coroutines.flow.mapLatest
import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import reactivecircus.flowbinding.android.view.clicks import reactivecircus.flowbinding.android.view.clicks
import kotlin.time.Duration.Companion.seconds
/** /**
* Batch add screen * Batch add screen
@ -126,7 +127,7 @@ class BatchAddController : NucleusController<EhFragmentBatchAddBinding, BatchAdd
target.apply { target.apply {
viewScope.launch { viewScope.launch {
inputViews.isVisible = false inputViews.isVisible = false
delay(250L) delay(0.5.seconds)
progressViews.isVisible = true progressViews.isVisible = true
} }
}.progressLog.text = "" }.progressLog.text = ""
@ -137,7 +138,7 @@ class BatchAddController : NucleusController<EhFragmentBatchAddBinding, BatchAdd
viewScope.launch { viewScope.launch {
progressViews.isVisible = false progressViews.isVisible = false
binding.progressDismissBtn.isVisible = false binding.progressDismissBtn.isVisible = false
delay(250L) delay(0.5.seconds)
inputViews.isVisible = true inputViews.isVisible = true
} }
}.galleriesBox.setText("", TextView.BufferType.EDITABLE) }.galleriesBox.setText("", TextView.BufferType.EDITABLE)