don't render the game under notches

This commit is contained in:
Ellpeck 2020-06-28 18:38:36 +02:00
parent 7bc53d2a24
commit 58bb137a43

View file

@ -54,10 +54,6 @@ namespace Android {
this.game.GraphicsDeviceManager.ApplyChanges();
};
// render under notches
if (Build.VERSION.SdkInt >= BuildVersionCodes.P)
this.Window.Attributes.LayoutInDisplayCutoutMode = LayoutInDisplayCutoutMode.ShortEdges;
// total layout that is displayed
this.mainView = new LinearLayout(this) {Orientation = Orientation.Vertical};
this.mainView.LayoutParameters = new LinearLayout.LayoutParams(MatchParent, MatchParent);