possibly fix status bar visibility on some devices

This commit is contained in:
Ellpeck 2020-06-15 17:08:14 +02:00
parent b4a75ff58e
commit d72d905da7

View file

@ -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);
}
}