From 71f5dc2f7ce5b8183421586e6a77be65040a4dff Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Mon, 1 Jan 2018 23:22:51 -0500 Subject: Format everything and use reified generics --- about/README.md | 3 ++- about/src/main/kotlin/ca/allanwang/kau/about/AboutBinder.kt | 4 ++-- about/src/main/res-public/values/public.xml | 2 +- about/src/main/res-public/values/styles.xml | 2 +- about/src/main/res/values-de-rDE/strings_about.xml | 7 +++---- about/src/main/res/values-es-rES/strings_about.xml | 7 +++---- about/src/main/res/values-fr-rFR/strings_about.xml | 7 +++---- about/src/main/res/values-gl-rES/strings_about.xml | 7 +++---- about/src/main/res/values-hu-rHU/strings_about.xml | 7 +++---- about/src/main/res/values-it-rIT/strings_about.xml | 7 +++---- about/src/main/res/values-ko-rKR/strings_about.xml | 7 +++---- about/src/main/res/values-no-rNO/strings_about.xml | 7 +++---- about/src/main/res/values-pt-rBR/strings_about.xml | 7 +++---- about/src/main/res/values-vi-rVN/strings_about.xml | 7 +++---- about/src/main/res/values-zh-rCN/strings_about.xml | 7 +++---- 15 files changed, 39 insertions(+), 49 deletions(-) (limited to 'about') diff --git a/about/README.md b/about/README.md index 77a329d..ccde4e6 100644 --- a/about/README.md +++ b/about/README.md @@ -18,8 +18,9 @@ Note that the viewpager by default will keep all panels in memory, so it's best You may easily launch the activity through the binder: ``` -Activity.kauLaunchAbout(YourClass::class.java) +Activity.kauLaunchAbout() ``` +where `T` extends `AboutActivityBase` Be sure to include the activity in your Manifest and have it extend `Kau.About`, or any other style that achieves the same look. 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) { - startActivity(clazz, bundleBuilder = { +inline fun Activity.kauLaunchAbout() { + startActivity(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 2db68c4..3739dd1 100644 --- a/about/src/main/res-public/values/public.xml +++ b/about/src/main/res-public/values/public.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/about/src/main/res-public/values/styles.xml b/about/src/main/res-public/values/styles.xml index c395e9f..e9ef931 100644 --- a/about/src/main/res-public/values/styles.xml +++ b/about/src/main/res-public/values/styles.xml @@ -1,6 +1,6 @@ -