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.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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user