From 84174b8f5bdb0107bee48e0b2b8613a9015eb36e Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Mon, 24 Dec 2018 20:14:48 -0500 Subject: Add out to scene transition with view, resolves #149 --- core/src/main/kotlin/ca/allanwang/kau/utils/BundleUtils.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/src/main/kotlin') diff --git a/core/src/main/kotlin/ca/allanwang/kau/utils/BundleUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/BundleUtils.kt index 5b4b188..8dcd856 100644 --- a/core/src/main/kotlin/ca/allanwang/kau/utils/BundleUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/BundleUtils.kt @@ -23,6 +23,8 @@ import android.os.Bundle import android.os.Parcelable import android.util.Pair import android.view.View +import android.widget.ImageView +import android.widget.TextView import androidx.annotation.AnimRes import ca.allanwang.kau.R import java.io.Serializable @@ -112,7 +114,7 @@ fun Bundle.withSceneTransitionAnimation(parent: View, data: Map) = * create a scene transition animation */ @SuppressLint("NewApi") -fun Bundle.withSceneTransitionAnimation(context: Context, data: Map) { +fun Bundle.withSceneTransitionAnimation(context: Context, data: Map) { if (context !is Activity || !buildIsLollipopAndUp) return val options = ActivityOptions.makeSceneTransitionAnimation( context, -- cgit v1.2.3