From 10617f02a95b162695ea068c0be6acceda74cf35 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 12 Aug 2017 10:09:01 -0700 Subject: Release 3.3.1 (#36) * Add open message joiner function * Update text extraction * Fix background tint * Rename logger file * Test codecov * Remove coverage * Enhancement/swipe (#35) * Merge swipe onPostCreate with swipe onCreate * Update samples and docs * Add deprecated method to maintain compatibility * Replace exception with illegal argument * Check if parent exists before configurations in searchview --- .../src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt | 8 +------- .../main/kotlin/ca/allanwang/kau/sample/SwipeActivity.kt | 13 ++++--------- sample/src/main/res/xml/kau_changelog.xml | 11 ++++++++--- 3 files changed, 13 insertions(+), 19 deletions(-) (limited to 'sample') 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 cd86d38..f052d97 100644 --- a/sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt +++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/AnimActivity.kt @@ -10,7 +10,6 @@ import ca.allanwang.kau.permissions.kauRequestPermissions import ca.allanwang.kau.swipe.SWIPE_EDGE_LEFT import ca.allanwang.kau.swipe.kauSwipeOnCreate import ca.allanwang.kau.swipe.kauSwipeOnDestroy -import ca.allanwang.kau.swipe.kauSwipeOnPostCreate import ca.allanwang.kau.utils.fullLinearRecycler import ca.allanwang.kau.utils.startActivitySlideOut import ca.allanwang.kau.utils.toast @@ -49,14 +48,9 @@ class AnimActivity : KauBaseActivity() { } } - override fun onPostCreate(savedInstanceState: Bundle?) { - super.onPostCreate(savedInstanceState) - kauSwipeOnPostCreate() - } - override fun onDestroy() { - super.onDestroy() kauSwipeOnDestroy() + super.onDestroy() } override fun onBackPressed() { diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/SwipeActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/SwipeActivity.kt index cba9ccd..da088cf 100644 --- a/sample/src/main/kotlin/ca/allanwang/kau/sample/SwipeActivity.kt +++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/SwipeActivity.kt @@ -40,9 +40,6 @@ class SwipeActivity : KauBaseActivity() { it.setOnClickListener { startActivityWithEdge(swipeEdge) } } val flag = intent.getIntExtra(SWIPE_EDGE, -1) - kauSwipeOnCreate { - edgeFlag = flag - } toolbar.title = when (flag) { SWIPE_EDGE_LEFT -> "Left Edge Swipe" SWIPE_EDGE_RIGHT -> "Right Edge Swipe" @@ -57,16 +54,14 @@ class SwipeActivity : KauBaseActivity() { val bg = headerColor.darken(0.2f) container.setBackgroundColor(bg) navigationBarColor = bg - } - - override fun onPostCreate(savedInstanceState: Bundle?) { - super.onPostCreate(savedInstanceState) - kauSwipeOnPostCreate() + kauSwipeOnCreate { + edgeFlag = flag + } } override fun onDestroy() { - super.onDestroy() kauSwipeOnDestroy() + super.onDestroy() } override fun onBackPressed() { diff --git a/sample/src/main/res/xml/kau_changelog.xml b/sample/src/main/res/xml/kau_changelog.xml index 6008ae1..fd3113c 100644 --- a/sample/src/main/res/xml/kau_changelog.xml +++ b/sample/src/main/res/xml/kau_changelog.xml @@ -6,6 +6,14 @@ --> + + + + + + + + @@ -14,9 +22,6 @@ - - - -- cgit v1.2.3