Created
December 12, 2017 14:44
-
-
Save digitalbuddha/258bd4317c2e2fdeb5c5a699f3acff55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun attachView(mvpView: AR, lifecycle: Lifecycle) { | |
super.attachView(mvpView, lifecycle) | |
disposables.add(dispatcher.showingArView() | |
.subscribeOn(scheduler) | |
.subscribe({ mvpView.showArView() }, { Timber.e(it) })) | |
disposables.add(dispatcher | |
.showing() | |
.filter{(it !is Showing.ArView)} | |
.observeOn(scheduler) | |
.subscribe{mvpView.hide()}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment