You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] StatusBar overlay missing tag on Android causes multiple overlays to be created #3132
On Android 35+, multiple StatusBar overlays are stacked on top of each other in the DecorView. A new overlay is created every time StatusBar.SetColor() is called because FindViewWithTag("StatusBarOverlay") always returns null.
This causes:
• Visual artifacts when trying to hide the status bar
• Memory waste from orphaned views
• Fullscreen implementations failing to completely hide the status bar area
Expected Behavior
Only one StatusBar overlay should exist, and its background color should be updated when StatusBar.SetColor() is called (same behavior as NavigationBar).
Steps To Reproduce
Create a .NET MAUI app targeting Android 35+
Set different StatusBar.SetColor() values on different pages (e.g., MainPage has one color, SettingsPage has another)
Navigate between these pages multiple times
Enter fullscreen mode or inspect the DecorView hierarchy
Suggested Fix:
Add the missing line after creating the StatusBar overlay:
statusBarOverlay.Tag=statusBarOverlayTag;
Workaround:
Until this is fixed, a workaround is to find all StatusBar overlays by their layout characteristics (Gravity.Top, MatchParent width, and height = status_bar_height + 3) instead of using FindViewWithTag.
👉 FullscreenService.cs workaround implementation
changed the title [-][BUG] StatusBar overlay missing tag on Android 35+ causes multiple overlays to be created[/-][+][BUG] StatusBar overlay missing tag causes multiple overlays to be created[/+]on Mar 5, 2026
changed the title [-][BUG] StatusBar overlay missing tag causes multiple overlays to be created[/-][+][BUG] StatusBar overlay missing tag on Android causes multiple overlays to be created[/+]on Mar 5, 2026
Activity
[-][BUG] StatusBar overlay missing tag on Android 35+ causes multiple overlays to be created[/-][+][BUG] StatusBar overlay missing tag causes multiple overlays to be created[/+][-][BUG] StatusBar overlay missing tag causes multiple overlays to be created[/-][+][BUG] StatusBar overlay missing tag on Android causes multiple overlays to be created[/+]Pastajello commentedon Apr 3, 2026
@TheCodeTraveler
This has been fixed with #3123
with:
eee32e1#diff-977ed6ea59fb638d6ad2b223434fdc48a86ed77cee069bb85cd4554c47b08401R65
line 65
@IgrisModz