diff options
Diffstat (limited to 'about/src/main')
-rw-r--r-- | about/src/main/kotlin/ca/allanwang/kau/about/AboutBinder.kt | 11 | ||||
-rw-r--r-- | about/src/main/res-public/values/public.xml | 2 |
2 files changed, 6 insertions, 7 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 diff --git a/about/src/main/res-public/values/public.xml b/about/src/main/res-public/values/public.xml index 3739dd1..2db68c4 100644 --- a/about/src/main/res-public/values/public.xml +++ b/about/src/main/res-public/values/public.xml @@ -1,4 +1,4 @@ <resources xmlns:tools='http://schemas.android.com/tools' tools:ignore='ResourceName'> - <!-- AUTO-GENERATED FILE. DO NOT MODIFY. public.xml is generated by the generatepublicxml gradle task --> +<!-- AUTO-GENERATED FILE. DO NOT MODIFY. public.xml is generated by the generatepublicxml gradle task --> <public name='Kau.About' type='style' /> </resources>
\ No newline at end of file |