Metuuu
12/7/2017 - 10:39 AM

show dialog Error: "Error Can not perform this action after onSaveInstanceState”

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")