Skip to content

Instantly share code, notes, and snippets.

@digitalbuddha
Created December 12, 2017 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitalbuddha/258bd4317c2e2fdeb5c5a699f3acff55 to your computer and use it in GitHub Desktop.
Save digitalbuddha/258bd4317c2e2fdeb5c5a699f3acff55 to your computer and use it in GitHub Desktop.
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