btw if I have this code ``` fun show() { p...
# getting-started
u
btw if I have this code
Copy code
fun show() {
        progressDialog = fm.findFragmentByTag(tag) as ProgressDialogFragment?
        if (progressDialog == null) {
            progressDialog = ProgressDialogFragment.newInstance(messageRes)
        }
        if (progressDialog != null) {
            if (!progressDialog.isAdded) {
                progressDialog!!.showAllowingStateLoss(fm, tag)
            }
        }
    }