Skip to content

Commit

Permalink
Fix bug with progress bar when enter to the app
Browse files Browse the repository at this point in the history
  • Loading branch information
xurxodev committed Dec 9, 2019
1 parent a647b08 commit 87a5de6
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ class ProgramPresenter internal constructor(
fun init() {
val loadingProcessor = PublishProcessor.create<Boolean>()

disposable.add(
loadingProcessor
.subscribeOn(schedulerProvider.io())
.observeOn(schedulerProvider.ui())
.subscribe(
{ view.showFilterProgress() },
{ Timber.e(it) }
)
)

disposable.add(
filterManager.asFlowable()
.startWith(filterManager)
Expand Down Expand Up @@ -58,16 +68,6 @@ class ProgramPresenter internal constructor(
)
)

disposable.add(
loadingProcessor
.subscribeOn(schedulerProvider.io())
.observeOn(schedulerProvider.ui())
.subscribe(
{ view.showFilterProgress() },
{ Timber.e(it) }
)
)

disposable.add(
filterManager.ouTreeFlowable()
.subscribeOn(schedulerProvider.io())
Expand Down

0 comments on commit 87a5de6

Please sign in to comment.