fix windowlistener when setting permissions
This commit is contained in:
parent
3c1342aad8
commit
0ffae50cb1
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue