Skip to content

Commit

Permalink
Android: Do not expand cutout if it's in portrait mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamer64ytb committed Jul 30, 2024
1 parent c284cd5 commit 29d98e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class EmulationActivity : AppCompatActivity() {
val attributes = window.attributes

attributes.layoutInDisplayCutoutMode =
if (BooleanSetting.EXPAND_TO_CUTOUT_AREA.boolean) {
if (BooleanSetting.EXPAND_TO_CUTOUT_AREA.boolean && !NativeLibrary.isPortraitMode) {
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
} else {
// TODO: Remove this once we properly account for display insets in the input overlay
Expand Down

0 comments on commit 29d98e9

Please sign in to comment.