diff --git a/Android/Activity1.cs b/Android/Activity1.cs index dd2c1da..6c1ebde 100644 --- a/Android/Activity1.cs +++ b/Android/Activity1.cs @@ -10,6 +10,7 @@ using Microsoft.Xna.Framework; using MLEM.Extensions; using MLEM.Misc; using TouchyTickets; +using static Android.Views.SystemUiFlags; using static Android.Views.ViewGroup.LayoutParams; using Uri = Android.Net.Uri; @@ -71,9 +72,9 @@ namespace Android { } public override void OnWindowFocusChanged(bool hasFocus) { - // hide the status bar - this.mainView.SystemUiVisibility = (StatusBarVisibility) (SystemUiFlags.LayoutStable | SystemUiFlags.LayoutHideNavigation | SystemUiFlags.LayoutFullscreen | SystemUiFlags.HideNavigation | SystemUiFlags.Fullscreen | SystemUiFlags.ImmersiveSticky); base.OnWindowFocusChanged(hasFocus); + // hide the status bar + this.Window.DecorView.SystemUiVisibility = (StatusBarVisibility) (ImmersiveSticky | LayoutStable | LayoutHideNavigation | LayoutFullscreen | HideNavigation | Fullscreen); } }