Merge pull request #212 from TouchInstinct/fix/window_insets_listener

Fix windowlistener when setting permissions
This commit is contained in:
rinstance 2021-08-19 15:50:07 +03:00 committed by GitHub
commit 2caefebc01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class KeyboardBehaviorDetector(
}
}
@OnLifecycleEvent(Lifecycle.Event.ON_START)
@OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
fun startDetection() {
ViewCompat.setOnApplyWindowInsetsListener(view) { _, windowInsets ->
val bottomInset = windowInsets.systemWindowInsetBottom