Created
September 26, 2017 01:40
-
-
Save andrewmunn/80379421356746bd2a93a23b5e9b2896 to your computer and use it in GitHub Desktop.
Using Keyboard Manager
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 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