asFragmentActivity

fun Activity.asFragmentActivity(): FragmentActivity?

尝试将当前的Activity转成FragmentActivity,如果失败,返回null