Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
Calling CommunityToolkit.Maui.Core.Platform.StatusBar.SetColor() to set a new color does not seem to work after a StatusBarBehavior has been invoked on a previous page, though setting the "Transparent" color does something.
Expected Behavior
StatusBar.SetColor should select a new color.
Steps To Reproduce
- Open and run the application from the repository.
- Wait 5 seconds for this page to show:
- Click the button to change colors and note that only "Transparent" seems to have an effect.
- Fall back to 10.0.1 toolkit and try again - it'll work better there (though will exhibit a different bug which is fixed in 10.1.0)
Link to public reproduction project repository
https://github.com/david-maw/DivStart-StatusBarStuck.git
Environment
- .NET MAUI CommunityToolkit: 10.1.0
- OS: Android 36
- .NET MAUI: 10.0.5
Anything else?
For me the workaround of not using StatusBarBehavior was feasible, so this isn't important.
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
Calling
CommunityToolkit.Maui.Core.Platform.StatusBar.SetColor()to set a new color does not seem to work after aStatusBarBehaviorhas been invoked on a previous page, though setting the "Transparent" color does something.Expected Behavior
StatusBar.SetColorshould select a new color.Steps To Reproduce
Link to public reproduction project repository
https://github.com/david-maw/DivStart-StatusBarStuck.git
Environment
Anything else?
For me the workaround of not using
StatusBarBehaviorwas feasible, so this isn't important.