Skip to content

Instantly share code, notes, and snippets.

@andrewmunn
Created September 26, 2017 01:40
Show Gist options
  • Save andrewmunn/80379421356746bd2a93a23b5e9b2896 to your computer and use it in GitHub Desktop.
Save andrewmunn/80379421356746bd2a93a23b5e9b2896 to your computer and use it in GitHub Desktop.
Using Keyboard Manager
override fun onCreate(savedInstanceState: Bundle?) {
keyboardManager.status()
.to(ObservableScoper(this)) // AutoDispose https://github.com/uber/AutoDispose
.subscribe { showAnnoyingBanner(visible = KeyboardStatus.CLOSED == it) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment