diff options
Diffstat (limited to 'about/src/main/kotlin')
-rw-r--r-- | about/src/main/kotlin/ca/allanwang/kau/about/AboutBinder.kt | 11 |
1 files changed, 5 insertions, 6 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 a5f5318..c99f7c2 100644 --- a/about/src/main/kotlin/ca/allanwang/kau/about/AboutBinder.kt +++ b/about/src/main/kotlin/ca/allanwang/kau/about/AboutBinder.kt @@ -1,6 +1,6 @@ package ca.allanwang.kau.about -import android.app.Activity +import android.content.Context import ca.allanwang.kau.utils.startActivity import ca.allanwang.kau.utils.withSceneTransitionAnimation @@ -11,8 +11,7 @@ import ca.allanwang.kau.utils.withSceneTransitionAnimation /** * About activity launcher */ -inline fun <reified T : AboutActivityBase> Activity.kauLaunchAbout() { - startActivity<T>(bundleBuilder = { - withSceneTransitionAnimation(this@kauLaunchAbout) - }) -}
\ No newline at end of file +inline fun <reified T : AboutActivityBase> Context.kauLaunchAbout() = + startActivity<T>(bundleBuilder = { + withSceneTransitionAnimation(this@kauLaunchAbout) + })
\ No newline at end of file |