diff options
author | Allan Wang <me@allanwang.ca> | 2018-01-02 23:38:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-02 23:38:51 -0500 |
commit | 2a9d5916a2acd0b468b9aa28977021fdd483e2aa (patch) | |
tree | a2df6258e213546a1807e15e45aa921ee69f192b /about/src/main | |
parent | 71f5dc2f7ce5b8183421586e6a77be65040a4dff (diff) | |
download | kau-2a9d5916a2acd0b468b9aa28977021fdd483e2aa.tar.gz kau-2a9d5916a2acd0b468b9aa28977021fdd483e2aa.tar.bz2 kau-2a9d5916a2acd0b468b9aa28977021fdd483e2aa.zip |
Fix/searchview (#123)
* Use workaround for kclick
* Add text cleared callback
* Add bundle scene transition functions
* Add applier
* Remove need for explicit context
* Revert
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 |