Skip to content

[BUG] StatusBarBehavior doesn't update dynamically on Android #3049

@mduchev-racebox

Description

@mduchev-racebox

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

When a StatusBarBehavior's StatusBarColor is bound to a property, that dynamically changes, it not only doesn't update correctly, but doesn't render properly initially.

Expected Behavior

When a StatusBarBehavior's StatusBarColor is bound to a property, that dynamically changes, it updates the status bar's color according to the property's value.

Steps To Reproduce

  1. Open and run the solution from the reproduction project
  2. Click on the button

Link to public reproduction project repository

https://github.com/mduchev-racebox/StatusBarBehaviorColorBug

Environment

- .NET MAUI CommunityToolkit: 13.0.0
- OS: macOS Tahoe 26.2
- .NET MAUI: 10.0.101

Anything else?

As it can be seen from the demo project, the status bar style (light/dark) changes properly. The issue happens on Android only. The same code works fine on iOS. If I try to manually change it via StatusBar.SetColor, the functionality is still not working.

Tested on Google Pixel 10 phone, with Android 16.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions