Merge pull request #257 from TouchInstinct/fix/PET-3233

PET-3233: fix KeyboardBehaviorDetector when bottomInset == 0
This commit is contained in:
Grigorii 2022-07-15 12:36:51 +03:00 committed by GitHub
commit b2b9caa4d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class KeyboardBehaviorDetector(
if (startNavigationBarHeight == -1) startNavigationBarHeight = bottomInset
if (startNavigationBarHeight > bottomInset) {
if (startNavigationBarHeight > bottomInset && bottomInset != 0) {
// update height if it was initialized incorrectly
startNavigationBarHeight = bottomInset
listener.invoke(false, windowInsets)