Skip to content

[Bug] ProgressDialogFragment crash the app when fast switching to fragments #177

Open
@catalin-florescu

Description

@catalin-florescu

image
Using DialogFragment or ProgressDialog could lead to crash if is trying to show when fragment is not attached or shown.
As a fast solve you could check if the fragment is added

override fun onPageFinished() { if (isAdded) progressDialog.dismiss() }

override fun onLoading() { if (isAdded && !progressDialog.isResumed) {...} }

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