aboutsummaryrefslogtreecommitdiff
path: root/about/src/main/kotlin/ca
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2018-01-01 23:22:51 -0500
committerAllan Wang <me@allanwang.ca>2018-01-01 23:22:51 -0500
commit71f5dc2f7ce5b8183421586e6a77be65040a4dff (patch)
treefedd18e271463ce2430637a9913e8470e84181ce /about/src/main/kotlin/ca
parentf94d6f9694973c2a323e565794d948002593df0a (diff)
downloadkau-71f5dc2f7ce5b8183421586e6a77be65040a4dff.tar.gz
kau-71f5dc2f7ce5b8183421586e6a77be65040a4dff.tar.bz2
kau-71f5dc2f7ce5b8183421586e6a77be65040a4dff.zip
Format everything and use reified generics
Diffstat (limited to 'about/src/main/kotlin/ca')
-rw-r--r--about/src/main/kotlin/ca/allanwang/kau/about/AboutBinder.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/about/src/main/kotlin/ca/allanwang/kau/about/AboutBinder.kt b/about/src/main/kotlin/ca/allanwang/kau/about/AboutBinder.kt
index 0380479..a5f5318 100644
--- a/about/src/main/kotlin/ca/allanwang/kau/about/AboutBinder.kt
+++ b/about/src/main/kotlin/ca/allanwang/kau/about/AboutBinder.kt
@@ -11,8 +11,8 @@ import ca.allanwang.kau.utils.withSceneTransitionAnimation
/**
* About activity launcher
*/
-fun Activity.kauLaunchAbout(clazz: Class<out AboutActivityBase>) {
- startActivity(clazz, bundleBuilder = {
+inline fun <reified T : AboutActivityBase> Activity.kauLaunchAbout() {
+ startActivity<T>(bundleBuilder = {
withSceneTransitionAnimation(this@kauLaunchAbout)
})
} \ No newline at end of file