Skip to content

Commit e2c5900

Browse files
committed
1 parent 207b143 commit e2c5900

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/java/app/grapheneos/pdfviewer/PdfViewer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ private void showWebViewCrashed() {
279279
@SuppressLint({"SetJavaScriptEnabled"})
280280
protected void onCreate(Bundle savedInstanceState) {
281281
super.onCreate(savedInstanceState);
282+
WindowCompat.setDecorFitsSystemWindows(getWindow(), false);
282283

283284
binding = PdfviewerBinding.inflate(getLayoutInflater());
284285
setContentView(binding.getRoot());
@@ -304,8 +305,6 @@ protected void onCreate(Bundle savedInstanceState) {
304305
}
305306
});
306307

307-
WindowCompat.setDecorFitsSystemWindows(getWindow(), false);
308-
309308
// Margins for the toolbar are needed, so that content of the toolbar
310309
// is not covered by a system button navigation bar when in landscape.
311310
KtUtilsKt.applySystemBarMargins(binding.toolbar, false);

0 commit comments

Comments
 (0)