ursus
08/01/2018, 2:10 AMhho
08/01/2018, 6:28 AM!!
on the fragment:
progressDialogFragment?.let {
if (!it.isAdded) it.show(fragmentManager!!, TAG_PROGRESS_DIALOG)
}
Notice however, that this doesn't throw if the fragment is not initialized (you could add a ?: error("not initialized")
or similar at the end though)