From fa72c4e6987ed128ead622aed9fd1ad9fc9a72af Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 27 Dec 2020 20:44:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/utils/FragmentExtensions.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/io/legado/app/utils/FragmentExtensions.kt b/app/src/main/java/io/legado/app/utils/FragmentExtensions.kt index 2e812a241..15787e7fe 100644 --- a/app/src/main/java/io/legado/app/utils/FragmentExtensions.kt +++ b/app/src/main/java/io/legado/app/utils/FragmentExtensions.kt @@ -69,11 +69,10 @@ inline fun Fragment.startActivity(vararg params: Pair Fragment.startActivityForResult( requestCode: Int, vararg params: Pair -) = - startActivityForResult( - AnkoInternals.createIntent(requireActivity(), T::class.java, params), - requestCode - ) +) = startActivityForResult( + AnkoInternals.createIntent(requireActivity(), T::class.java, params), + requestCode +) inline fun Fragment.startService(vararg params: Pair) = AnkoInternals.internalStartService(requireActivity(), T::class.java, params)