Skip to content

Calling show() consecutively #28

@tingyik90

Description

@tingyik90

Apart from #26, when calling show() consecutively without dismiss(), e.g. showing "Updating database..." and if the result immediately returned to show "Database updated!", due to the way SnackbarManager works, it can trigger the callback differently than expected. Typically the call will be:

snackProgressBar1.show() 
snackProgressBar2.show()
snackProgressBar1.onDismissed()     // Due to snackProgressBar1 immediately dismissed before showing
snackProgressBar1.onShown()
snackProgressBar2.onShown()

This can mess up user operation if there are operations pending in the callback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions