fix windowlistener when setting permissions

This commit is contained in:
Rinat Nurmukhametov 2021-08-19 14:49:41 +03:00
parent 3c1342aad8
commit 0ffae50cb1
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() { fun startDetection() {
ViewCompat.setOnApplyWindowInsetsListener(view) { _, windowInsets -> ViewCompat.setOnApplyWindowInsetsListener(view) { _, windowInsets ->
val bottomInset = windowInsets.systemWindowInsetBottom val bottomInset = windowInsets.systemWindowInsetBottom