Skip to content

Commit

Permalink
remvoe visibility check in android insets manager for system theme
Browse files Browse the repository at this point in the history
  • Loading branch information
emmauss committed Jun 28, 2024
1 parent e58784a commit b98aefb
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Android/Avalonia.Android/Platform/AndroidInsetsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,6 @@ public SystemBarTheme? SystemBarTheme
{
_statusBarTheme = value;

if (!_topLevel.View.IsShown)
{
return;
}

var compat = new WindowInsetsControllerCompat(Window, _topLevel.View);

if (_isDefaultSystemBarLightTheme == null)
Expand Down Expand Up @@ -229,11 +224,6 @@ public bool? IsSystemBarVisible
{
_systemUiVisibility = value;

if (!_topLevel.View.IsShown)
{
return;
}

var compat = WindowCompat.GetInsetsController(Window, _topLevel.View);

if (value == null || value.Value)
Expand Down

0 comments on commit b98aefb

Please sign in to comment.