aboutsummaryrefslogtreecommitdiff
path: root/sample/src/main/kotlin
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-03-11 00:28:56 -0400
committerAllan Wang <me@allanwang.ca>2019-03-11 00:28:56 -0400
commit35d88ea61f9fa46afa141b5ea36ffe830133ebe3 (patch)
tree07d6340487f8e8d5c042f008e08428e803acfdd7 /sample/src/main/kotlin
parent93c6c3d22a1cf8c3bc82fef4f9fb92ac2fd6e79a (diff)
downloadkau-35d88ea61f9fa46afa141b5ea36ffe830133ebe3.tar.gz
kau-35d88ea61f9fa46afa141b5ea36ffe830133ebe3.tar.bz2
kau-35d88ea61f9fa46afa141b5ea36ffe830133ebe3.zip
Update versions
Diffstat (limited to 'sample/src/main/kotlin')
-rw-r--r--sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt14
1 files changed, 4 insertions, 10 deletions
diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
index 25b5c16..fccba05 100644
--- a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
+++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
@@ -15,12 +15,11 @@
*/
package ca.allanwang.kau.sample
-import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
-import ca.allanwang.kau.about.AboutActivityBase
+import ca.allanwang.kau.about.kauLaunchAbout
import ca.allanwang.kau.email.sendEmail
import ca.allanwang.kau.kpref.activity.CoreAttributeContract
import ca.allanwang.kau.kpref.activity.KPrefActivity
@@ -242,10 +241,10 @@ class MainActivity : KPrefActivity() {
onClick = {
itemView.context.materialDialog {
title("Type Text")
- input("Type here", item.pref, { _, input ->
+ input("Type here", item.pref) { _, input ->
item.pref = input.toString()
reloadSelf()
- })
+ }
inputRange(0, 20)
}
}
@@ -319,9 +318,4 @@ class MainActivity : KPrefActivity() {
REQUEST_MEDIA -> toast("${kauOnMediaPickerResult(resultCode, data).size} items selected")
}
}
-}
-
-inline fun <reified T : AboutActivityBase> Context.kauLaunchAbout() =
- startActivity<T>(bundleBuilder = {
- withSceneTransitionAnimation(this@kauLaunchAbout)
- })
+} \ No newline at end of file