2020-11-26 15:37:03 +00:00
|
|
|
package com.vanced.manager.core.ui.ext
|
2020-11-14 22:08:15 +00:00
|
|
|
|
|
|
|
import androidx.fragment.app.DialogFragment
|
|
|
|
import androidx.fragment.app.Fragment
|
|
|
|
|
|
|
|
fun Fragment.requireSupportFM() = requireActivity().supportFragmentManager
|
|
|
|
|
|
|
|
fun <D : DialogFragment> Fragment.showDialog(dialog: D) {
|
|
|
|
dialog.show(requireSupportFM(), dialog::class.simpleName)
|
|
|
|
}
|