Compare commits

...

2 Commits

Author SHA1 Message Date
Jules Aguillon
b50647f622 Call Window.setAttributes()
Some checks failed
Make Apk CI / Build-Apk (push) Has been cancelled
Check translations / check-translations (push) Has been cancelled
Check layouts / check_layout.output (push) Has been cancelled
Check layouts / Generated files (push) Has been cancelled
2025-07-02 23:54:53 +02:00
Jules Aguillon
cd1b4beb10 Avoid transparent background below the navigation bar
With some vendors, the navigation bar was transparent and the keyboard
background was not drawn behind it.
2025-07-02 22:51:01 +02:00

View File

@@ -315,7 +315,9 @@ public class Keyboard2 extends InputMethodService
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS;
// Allow to draw behind system bars
wattrs.setFitInsetsTypes(0);
window.setAttributes(wattrs);
window.setDecorFitsSystemWindows(false);
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
}
updateLayoutHeightOf(window, ViewGroup.LayoutParams.MATCH_PARENT);
final View inputArea = window.findViewById(android.R.id.inputArea);