Skip to content

Commit d4693d3

Browse files
committed
Fix launchWithWaiting
1 parent bb75004 commit d4693d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/main/java/com/omega_r/base/mvp/presenters/OmegaPresenter.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ open class OmegaPresenter<View : OmegaView> : MvpPresenter<View>(), CoroutineSco
4242
}
4343

4444
protected inline fun launchWithWaiting(crossinline block: suspend () -> Unit) = with(viewState) {
45+
setWaiting(true)
4546
launch {
4647
try {
4748
block()

0 commit comments

Comments
 (0)