Change delay() time (#741)
This commit is contained in:
parent
f7ea3b6d7a
commit
3db190138a
@ -20,6 +20,7 @@ import kotlinx.coroutines.flow.mapLatest
|
||||
import kotlinx.coroutines.flow.onEach
|
||||
import kotlinx.coroutines.launch
|
||||
import reactivecircus.flowbinding.android.view.clicks
|
||||
import kotlin.time.Duration.Companion.seconds
|
||||
|
||||
/**
|
||||
* Batch add screen
|
||||
@ -126,7 +127,7 @@ class BatchAddController : NucleusController<EhFragmentBatchAddBinding, BatchAdd
|
||||
target.apply {
|
||||
viewScope.launch {
|
||||
inputViews.isVisible = false
|
||||
delay(250L)
|
||||
delay(0.5.seconds)
|
||||
progressViews.isVisible = true
|
||||
}
|
||||
}.progressLog.text = ""
|
||||
@ -137,7 +138,7 @@ class BatchAddController : NucleusController<EhFragmentBatchAddBinding, BatchAdd
|
||||
viewScope.launch {
|
||||
progressViews.isVisible = false
|
||||
binding.progressDismissBtn.isVisible = false
|
||||
delay(250L)
|
||||
delay(0.5.seconds)
|
||||
inputViews.isVisible = true
|
||||
}
|
||||
}.galleriesBox.setText("", TextView.BufferType.EDITABLE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user