Fix bubbles jumping around when entering selection mode.

This commit is contained in:
Cody Henthorne
2023-07-18 15:26:46 -04:00
committed by Nicholas
parent 67d4f666ce
commit 4910050891
2 changed files with 9 additions and 3 deletions

View File

@@ -61,6 +61,9 @@ open class InsetAwareConstraintLayout @JvmOverloads constructor(
private var overridingKeyboard: Boolean = false
private var previousKeyboardHeight: Int = 0
val isKeyboardShowing: Boolean
get() = previousKeyboardHeight > 0
init {
ViewCompat.setOnApplyWindowInsetsListener(this) { _, windowInsetsCompat ->
applyInsets(windowInsets = windowInsetsCompat.getInsets(windowTypes), keyboardInsets = windowInsetsCompat.getInsets(keyboardType))