aboutsummaryrefslogtreecommitdiff
path: root/library/src/main/kotlin/ca/allanwang
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-02 14:46:45 -0700
committerAllan Wang <me@allanwang.ca>2017-07-02 14:46:45 -0700
commitb88a8834dc3be12a37856e9e2584eee7ef52c22e (patch)
treee571ea156c1f866e08881dccc24a8947bb3e8c17 /library/src/main/kotlin/ca/allanwang
parent404aebc5c8dc1dd4288e65e9dd07ca1273ab6146 (diff)
downloadkau-b88a8834dc3be12a37856e9e2584eee7ef52c22e.tar.gz
kau-b88a8834dc3be12a37856e9e2584eee7ef52c22e.tar.bz2
kau-b88a8834dc3be12a37856e9e2584eee7ef52c22e.zip
With generics
Diffstat (limited to 'library/src/main/kotlin/ca/allanwang')
-rw-r--r--library/src/main/kotlin/ca/allanwang/kau/utils/FragmentUtils.kt2
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