优化代码

pull/768/head
gedoor 4 years ago
parent 65dcf89dc2
commit fa72c4e698
  1. 3
      app/src/main/java/io/legado/app/utils/FragmentExtensions.kt

@ -69,8 +69,7 @@ inline fun <reified T : Activity> Fragment.startActivity(vararg params: Pair<Str
inline fun <reified T : Activity> Fragment.startActivityForResult(
requestCode: Int,
vararg params: Pair<String, Any?>
) =
startActivityForResult(
) = startActivityForResult(
AnkoInternals.createIntent(requireActivity(), T::class.java, params),
requestCode
)

Loading…
Cancel
Save