mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2025-08-18 18:28:34 +02:00
Compare commits
2 Commits
crash-numb
...
set-window
Author | SHA1 | Date | |
---|---|---|---|
|
b50647f622 | ||
|
cd1b4beb10 |
@@ -315,7 +315,9 @@ public class Keyboard2 extends InputMethodService
|
|||||||
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS;
|
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS;
|
||||||
// Allow to draw behind system bars
|
// Allow to draw behind system bars
|
||||||
wattrs.setFitInsetsTypes(0);
|
wattrs.setFitInsetsTypes(0);
|
||||||
|
window.setAttributes(wattrs);
|
||||||
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