FIX: [BUG] Using StatusBarBehavior Breaks StatusBar.SetColor() #3197 API36 - #3202
#3202Merged
TheCodeTraveler merged 10 commits intoApr 15, 2026
CommunityToolkit:mainCommunityToolkit/Maui:mainfrom
Pastajello:bugfix/3197-api-36-color-statusbarPastajello/CommunityToolkit.Maui:bugfix/3197-api-36-color-statusbarCopy head branch name to clipboard
Merged
FIX: [BUG] Using StatusBarBehavior Breaks StatusBar.SetColor() #3197 API36#3202TheCodeTraveler merged 10 commits intoCommunityToolkit:mainCommunityToolkit/Maui:mainfrom Pastajello:bugfix/3197-api-36-color-statusbarPastajello/CommunityToolkit.Maui:bugfix/3197-api-36-color-statusbarCopy head branch name to clipboard
TheCodeTraveler merged 10 commits into
CommunityToolkit:mainCommunityToolkit/Maui:mainfrom
Pastajello:bugfix/3197-api-36-color-statusbarPastajello/CommunityToolkit.Maui:bugfix/3197-api-36-color-statusbarCopy head branch name to clipboard
Conversation
…om/Pastajello/CommunityToolkit.Maui into bugfix/3197-api-36-color-statusbar
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes an Android API 36-specific regression where using StatusBarBehavior can interfere with later calls to StatusBar.SetColor(), by avoiding duplicate creation of the status bar overlay view.
Changes:
- Add a secondary “already created overlay” check inside the
DecorView.Postcallback to prevent creating multiple overlays on Android API 36+.
…droid.cs Apply to already created overlay Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
TheCodeTraveler
approved these changes
Apr 15, 2026
TheCodeTraveler
enabled auto-merge (squash)
April 15, 2026 16:04
matt-goldman
pushed a commit
to matt-goldman/Maui-1
that referenced
this pull request
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
The change check for already created statusBarOverlay in the Action run on MessageQueue.
Producing a sample is actually difficult as it requires changing the BehaviorsGalleryPage.Behaviors since first succesfull creation of statusBarOverlay is then reused in the app.
The case can be tested by simply commenting out some code in BehaviorsGalleryPage:
Linked Issues
PR Checklist
approved(bug) orChampioned(feature/proposal)mainat time of PRAdditional information