try :
override fun show(manager: FragmentManager, tag: String?) {
if (isAdded)
return
super.show(manager, tag)
}
My action is when the user clicks on an item, it shows the dialog. (If the user clicks too fast or uses 2 fingers to click on 2 items at the same time, it will cause this error).