possibly fix status bar visibility on some devices
This commit is contained in:
parent
b4a75ff58e
commit
d72d905da7
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue