- Definitions:
Online
: It works even if you add an e to the end of the list midway through the algoStable
: Equal elements are sorted in the same order they appear
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
fun Activity.handleKeyboardVisibility(isInitialKeyboardVisible: Boolean = true, onOpen: () -> Unit, onClose: () -> Unit) { | |
var isKeyboardVisible = isInitialKeyboardVisible | |
val listener = OnGlobalLayoutListener { | |
window.decorView.apply { | |
val r = Rect() | |
getWindowVisibleDisplayFrame(r) | |
val isKeyboardCurrentlyVisible = height - r.bottom > height * 0.1399 | |
if (!isKeyboardVisible && isKeyboardCurrentlyVisible) { | |
// Keyboard is open |
This is just a more step-by-step/expanded version of this gist and this commit. You should be able to do similar things for any other secrets!
Make a .properties
file (in this case I called it signing.properties
) where the secrets will be stored.
RELEASE_STORE_PASSWORD=acbd123
RELEASE_KEY_PASSWORD=qwerty7890
RELEASE_KEY_ALIAS=key0