I have a dialogfragment for a floating dialog which includes a special keyboard that pops up when a user presses inside an EditText field (the normal IME is stopped from bei
Use onDismiss() callback of DialogFragment with a closeActivity flag
private var closeActivity: Boolean = true override fun onDismiss(dialog: DialogInterface?) { super.onDismiss(dialog) if (closeActivity) { activity!!.finish() } }