Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ static void PlatformSetColor_AndroidApi36AndHigher(Window window, PlatformColor
{
window.DecorView.Post(() =>
{
var existingOverlay = decorGroup.FindViewWithTag(statusBarOverlayTag);

if (existingOverlay is not null)
{
Comment thread
Pastajello marked this conversation as resolved.
existingOverlay.SetBackgroundColor(platformColor);
ApplyWindowFlags(window, platformColor);
return;
}

var insets = window.DecorView.RootWindowInsets;
var height = insets?.GetInsets(WindowInsets.Type.StatusBars()).Top ?? 0;

Expand Down
Loading