I am using a third-party library and sometimes it pops up a dialog. Before I finish the current activity, I want to check whether there is a dialog popped up in the current con
If you are using Kotlin just:
supportFragmentManager.fragments.any { it is DialogFragment }