From 35d88ea61f9fa46afa141b5ea36ffe830133ebe3 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Mon, 11 Mar 2019 00:28:56 -0400 Subject: Update versions --- .../main/kotlin/ca/allanwang/kau/sample/MainActivity.kt | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'sample/src/main/kotlin') 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 Context.kauLaunchAbout() = - startActivity(bundleBuilder = { - withSceneTransitionAnimation(this@kauLaunchAbout) - }) +} \ No newline at end of file -- cgit v1.2.3