From 2718156fe63304ffb792cc3cb8592ad6e494a8b0 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Wed, 27 Dec 2017 20:50:13 -0500 Subject: Remove activityoptionscompat --- core/src/main/kotlin/ca/allanwang/kau/utils/BundleUtils.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core') 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 98fceaf..76c314a 100644 --- a/core/src/main/kotlin/ca/allanwang/kau/utils/BundleUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/BundleUtils.kt @@ -6,7 +6,6 @@ import android.app.ActivityOptions import android.content.Context import android.os.Bundle import android.support.annotation.AnimRes -import android.support.v4.app.ActivityOptionsCompat import ca.allanwang.kau.R /** @@ -32,7 +31,7 @@ fun Bundle.withSceneTransitionAnimation(context: Context) { fun Bundle.withCustomAnimation(context: Context, @AnimRes enterResId: Int, @AnimRes exitResId: Int) { - this with ActivityOptionsCompat.makeCustomAnimation(context, + this with ActivityOptions.makeCustomAnimation(context, enterResId, exitResId).toBundle() } -- cgit v1.2.3