mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2025-08-16 21:00:59 +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
|
// Allow to draw behind system bars
|
||||||
wattrs.setFitInsetsTypes(0);
|
wattrs.setFitInsetsTypes(0);
|
||||||
window.setDecorFitsSystemWindows(false);
|
window.setDecorFitsSystemWindows(false);
|
||||||
|
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
|
||||||
}
|
}
|
||||||
updateLayoutHeightOf(window, ViewGroup.LayoutParams.MATCH_PARENT);
|
updateLayoutHeightOf(window, ViewGroup.LayoutParams.MATCH_PARENT);
|
||||||
final View inputArea = window.findViewById(android.R.id.inputArea);
|
final View inputArea = window.findViewById(android.R.id.inputArea);
|
||||||
|
Reference in New Issue
Block a user