Fix crash
This commit is contained in:
@@ -589,8 +589,11 @@ class AppRouter private constructor(
|
||||
/** Private utils **/
|
||||
|
||||
private fun startActivity(intent: Intent, options: Bundle? = null) {
|
||||
fragment?.startActivity(intent, options)
|
||||
?: activity?.startActivity(intent, options)
|
||||
fragment?.also {
|
||||
if (it.host != null) {
|
||||
it.startActivity(intent, options)
|
||||
}
|
||||
} ?: activity?.startActivity(intent, options)
|
||||
}
|
||||
|
||||
private fun startActivitySafe(intent: Intent): Boolean = try {
|
||||
|
||||
Reference in New Issue
Block a user