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 --- about/src/main/kotlin/ca/allanwang/kau/about/AboutBinder.kt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'about/src/main/kotlin/ca/allanwang') 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 Activity.kauLaunchAbout() { - startActivity(bundleBuilder = { - withSceneTransitionAnimation(this@kauLaunchAbout) - }) -} \ No newline at end of file +inline fun Context.kauLaunchAbout() = + startActivity(bundleBuilder = { + withSceneTransitionAnimation(this@kauLaunchAbout) + }) \ No newline at end of file -- cgit v1.2.3