Skip to content

[BUG] Options has incorrect Build Order #2490

@ne0rrmatrix

Description

@ne0rrmatrix

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

Currently setting option to opt out of new dialog fragment with android does not work in debug or release mode. I am unable to navigate between pages in sample app on Android. Setting options does not work.

Expected Behavior

options.SetShouldUseStatusBarBehaviorOnAndroidModalPage(false); should work and currently does nothing.

Steps To Reproduce

  1. Open sample app.
  2. set options.SetShouldUseStatusBarBehaviorOnAndroidModalPage(false); in builder
  3. Run sample app and navigate to any page on maui.
  4. The option does not work and app crashes to android desktop.

Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui/tree/main/samples

Environment

- .NET MAUI CommunityToolkit:11.0 - Currrent main not release version
- OS:Android any version
- .NET MAUI:9.0.30

Anything else?

I will have a PR out this morning with a workaround for the issue that will fix the order of options that has been verified to at least fix the options. As for dialog fragment issue I have no idea. The PR I have in mind will have options working and opting out mitigates the current crash.

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