mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2025-08-16 01:58:41 +02:00
Avoid transparent background below the navigation bar
With some vendors, the navigation bar was transparent and the keyboard background was not drawn behind it.
This commit is contained in:
@ -316,6 +316,7 @@ public class Keyboard2 extends InputMethodService
|
||||
// Allow to draw behind system bars
|
||||
wattrs.setFitInsetsTypes(0);
|
||||
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);
|
||||
|
Reference in New Issue
Block a user