Browse Source

revert changes preventing status bar theme from being updated (#19076)

release/11.3.2
Emmanuel Hansen 8 months ago
committed by Julien Lebosquain
parent
commit
c8c53277db
  1. 6
      src/Android/Avalonia.Android/Platform/AndroidInsetsManager.cs

6
src/Android/Avalonia.Android/Platform/AndroidInsetsManager.cs

@ -224,12 +224,6 @@ namespace Avalonia.Android.Platform
{
_statusBarTheme = value;
// On api 35, there's no system bar theme. Updating the status bar theme has no effect, and navigation bar now has a special style that
// makes it invisible if you change the nav bar appearance. By default, android applies a 80% opacity filter over any color drawn on the
// activity behind, forcing you to always use a light foreground, i.e. dark appearance. Thus we skip updating any colors.
if (_isDisplayEdgeToEdgeForced)
return;
var compat = new WindowInsetsControllerCompat(Window, _topLevel.View);
if (_isDefaultSystemBarLightTheme == null)

Loading…
Cancel
Save