Skip to content

Commit

Permalink
Gate a field under its SKD version
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk authored and not-fl3 committed Sep 26, 2024
1 parent 7b14f8b commit 5a9a76b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion java/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@ public void run() {

if (fullscreen) {
getWindow().setFlags(LayoutParams.FLAG_LAYOUT_NO_LIMITS, LayoutParams.FLAG_LAYOUT_NO_LIMITS);
getWindow().getAttributes().layoutInDisplayCutoutMode = LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
if (Build.VERSION.SDK_INT >= 28) {
getWindow().getAttributes().layoutInDisplayCutoutMode = LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
}
if (Build.VERSION.SDK_INT >= 30) {
getWindow().setDecorFitsSystemWindows(false);
} else {
Expand Down

0 comments on commit 5a9a76b

Please sign in to comment.