From 2a9d5916a2acd0b468b9aa28977021fdd483e2aa Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Tue, 2 Jan 2018 23:38:51 -0500 Subject: Fix/searchview (#123) * Use workaround for kclick * Add text cleared callback * Add bundle scene transition functions * Add applier * Remove need for explicit context * Revert --- sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sample') 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 6784705..b27a713 100644 --- a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt +++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt @@ -1,10 +1,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.kauLaunchAbout +import ca.allanwang.kau.about.AboutActivityBase import ca.allanwang.kau.email.sendEmail import ca.allanwang.kau.kpref.activity.CoreAttributeContract import ca.allanwang.kau.kpref.activity.KPrefActivity @@ -287,3 +288,8 @@ class MainActivity : KPrefActivity() { } } } + +inline fun Context.kauLaunchAbout() = + startActivity(bundleBuilder = { + withSceneTransitionAnimation(this@kauLaunchAbout) + }) \ No newline at end of file -- cgit v1.2.3