File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
app/src/main/java/it/niedermann/owncloud/notes/edit Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,15 @@ protected void onCreate(final Bundle savedInstanceState) {
110110 }
111111
112112 private void setImeInsets () {
113- ViewCompat .setOnApplyWindowInsetsListener (this .getWindow ().getDecorView (), (v , insets ) -> {
113+ 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 ) -> {
114122 Insets imeInsets = insets .getInsets (WindowInsetsCompat .Type .ime ());
115123 Insets navBarInsets = insets .getInsets (WindowInsetsCompat .Type .navigationBars ());
116124
You can’t perform that action at this time.
0 commit comments