We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c36662b commit 99e761eCopy full SHA for 99e761e
1 file changed
app/src/main/java/it/niedermann/owncloud/notes/edit/EditNoteActivity.java
@@ -110,7 +110,15 @@ protected void onCreate(final Bundle savedInstanceState) {
110
}
111
112
private void setImeInsets() {
113
- ViewCompat.setOnApplyWindowInsetsListener(this.getWindow().getDecorView(), (v, insets) -> {
+ final var window = getWindow();
114
+ if (window == null) {
115
+ return;
116
+ }
117
+
118
+ WindowCompat.setDecorFitsSystemWindows(window, false);
119
120
+ final var decorView = window.getDecorView();
121
+ ViewCompat.setOnApplyWindowInsetsListener(decorView, (v, insets) -> {
122
Insets imeInsets = insets.getInsets(WindowInsetsCompat.Type.ime());
123
Insets navBarInsets = insets.getInsets(WindowInsetsCompat.Type.navigationBars());
124
0 commit comments