show dialog Error: "Error Can not perform this action after onSaveInstanceState”
val ft: FragmentTransaction = supportFragmentManager.beginTransaction()
ft.add(dialog, "dialog")
ft.commitAllowingStateLoss()
// instead of dialog.show(supportFragmentManager, "dialog")