diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-02 14:46:45 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-07-02 14:46:45 -0700 |
commit | b88a8834dc3be12a37856e9e2584eee7ef52c22e (patch) | |
tree | e571ea156c1f866e08881dccc24a8947bb3e8c17 /library | |
parent | 404aebc5c8dc1dd4288e65e9dd07ca1273ab6146 (diff) | |
download | kau-b88a8834dc3be12a37856e9e2584eee7ef52c22e.tar.gz kau-b88a8834dc3be12a37856e9e2584eee7ef52c22e.tar.bz2 kau-b88a8834dc3be12a37856e9e2584eee7ef52c22e.zip |
With generics
Diffstat (limited to 'library')
-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 |