mirror of
https://github.com/FossifyOrg/Keyboard.git
synced 2026-06-14 08:35:07 -04:00
Use Window Inset Compat api
This commit is contained in:
@@ -84,7 +84,8 @@ class SimpleKeyboardIME : InputMethodService(), OnKeyboardActionListener, Shared
|
||||
val window = window.window!!
|
||||
WindowCompat.setDecorFitsSystemWindows(window, false)
|
||||
window.decorView.setOnApplyWindowInsetsListener { _, insets ->
|
||||
val bottom = insets.getInsets(WindowInsetsCompat.Type.systemBars()).bottom
|
||||
val windowInsets = WindowInsetsCompat.toWindowInsetsCompat(insets)
|
||||
val bottom = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars()).bottom
|
||||
binding.keyboardHolder.updatePadding(bottom = bottom)
|
||||
insets
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user