Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] StateLayout never go back to normal state #1112

@PaulP92

Description

@PaulP92

StateLayoutController does not store the original content, because previousState is now nullable:

When switching to a template the if statement is wrong:

// Put the original content somewhere where we can restore it.
if (previousState == LayoutState.None)
{
originalContent = new List<View>();
foreach (var item in layout.Children)
originalContent.Add(item);
}

Either change previousState back to non-nullable or add null-check to the if statement.

You can test it in the Sample App. Just click the "Show Fullscreen Loader", when going back to normal state the screen is blank.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions