Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
-keep class org.fossify.keyboard.helpers.MyKeyboard { *; }
-keep class org.fossify.keyboard.helpers.MyKeyboard$Key { *; }
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class SimpleKeyboardIME : InputMethodService(), OnKeyboardActionListener, Shared
setKeyboardHolder(binding)
setKeyboard(keyboard!!)
setEditorInfo(currentInputEditorInfo)
setupNavigationBarPadding()
setupEdgeToEdge()
mOnKeyboardActionListener = this@SimpleKeyboardIME
}

Expand Down Expand Up @@ -553,13 +553,13 @@ class SimpleKeyboardIME : InputMethodService(), OnKeyboardActionListener, Shared
}
}

private fun setupNavigationBarPadding() {
private fun setupEdgeToEdge() {
window.window?.apply {
WindowCompat.setDecorFitsSystemWindows(this, false)
WindowCompat.enableEdgeToEdge(this)
ViewCompat.setOnApplyWindowInsetsListener(binding.keyboardHolder) { view, insets ->
val bottomPadding = insets.getInsets(WindowInsetsCompat.Type.systemBars()).bottom
binding.keyboardHolder.updatePadding(bottom = bottomPadding)
ViewCompat.onApplyWindowInsets(view, insets)
insets
}
}
}
Expand Down
Loading