From 9bc520fc9041fed26ef965ef2420a0552ccc20d6 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Wed, 5 Jul 2017 17:05:19 -0700 Subject: More on swipe back --- sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sample/src/main/kotlin/ca/allanwang') diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt index db87a2d..dd95b18 100644 --- a/sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt +++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt @@ -7,9 +7,7 @@ import ca.allanwang.kau.permissions.PERMISSION_ACCESS_COARSE_LOCATION import ca.allanwang.kau.permissions.PERMISSION_ACCESS_FINE_LOCATION import ca.allanwang.kau.permissions.kauOnRequestPermissionsResult import ca.allanwang.kau.permissions.kauRequestPermissions -import ca.allanwang.kau.swipe.kauSwipeOnCreate -import ca.allanwang.kau.swipe.kauSwipeOnDestroy -import ca.allanwang.kau.swipe.kauSwipeOnPostCreate +import ca.allanwang.kau.swipe.* import ca.allanwang.kau.utils.fullLinearRecycler import ca.allanwang.kau.utils.startActivitySlideOut import ca.allanwang.kau.utils.toast @@ -40,7 +38,9 @@ class AnimActivity : AppCompatActivity() { } true } - kauSwipeOnCreate() + kauSwipeOnCreate { + edgeFlag = SWIPE_EDGE_ALL + } } override fun onPostCreate(savedInstanceState: Bundle?) { -- cgit v1.2.3