diff options
Diffstat (limited to 'about/src/main/kotlin/ca/allanwang')
-rw-r--r-- | about/src/main/kotlin/ca/allanwang/kau/about/AboutBinder.kt | 4 |
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 |