diff options
Diffstat (limited to 'library/src/main/kotlin')
-rw-r--r-- | library/src/main/kotlin/ca/allanwang/kau/utils/FragmentUtils.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/FragmentUtils.kt b/library/src/main/kotlin/ca/allanwang/kau/utils/FragmentUtils.kt index e0bdd8b..acc71f2 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/utils/FragmentUtils.kt +++ b/library/src/main/kotlin/ca/allanwang/kau/utils/FragmentUtils.kt @@ -6,7 +6,7 @@ import org.jetbrains.anko.bundleOf /** * Created by Allan Wang on 2017-07-02. */ -fun Fragment.withArguments(vararg params:Pair<String, Any>):Fragment { +fun <T : Fragment> T.withArguments(vararg params: Pair<String, Any>): T { arguments = bundleOf(*params) return this }
\ No newline at end of file |