Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,11 @@ void UpdateBarTextColor()

void SetStatusBarStyle()
{
if (NavPage is null)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although the fix looks correct, this changes worry me that we could be hiding an error or the real reason, do we know the origin of the error? Maybe we should check HasNavigationBar and avoid invalidating something first.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be really nice if we can achieve to have a test, because in that way we could know exactly what's happening. Reading the issue seems to be related with use a FlyoutPage and HasNavigationBar, but not sure how to reproduce it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, but, I’m currently unable to reproduce the issue. I’m waiting for the reporter to either provide clear reproduction steps or confirm whether this PR resolves the crash.

{
return;
}

var barTextColor = NavPage.BarTextColor;
var statusBarColorMode = NavPage.OnThisPlatform().GetStatusBarTextColorMode();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,11 @@ void UpdateBarTextColor()

void SetStatusBarStyle()
{
if (NavPage is null)
{
return;
}

var barTextColor = NavPage.BarTextColor;
var statusBarColorMode = NavPage.OnThisPlatform().GetStatusBarTextColorMode();

Expand Down
Loading