From a7e24f0c6bb1c598735eb902cf8cdff8de5dd1da Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Fri, 23 Feb 2018 20:53:16 -0500 Subject: Update/fast adapter (#138) * Update version and add debug key * Update fast adapter * Add debug separation * Inline functions and remove unused --- .../src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt | 11 ++++++----- sample/src/main/res/values/strings_sample.xml | 1 - 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sample/src') diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt index 0d2e5a3..b424e91 100644 --- a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt +++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt @@ -233,11 +233,12 @@ class MainActivity : KPrefActivity() { this.navigationBarColor = KPrefSample.accentColor if (KPrefSample.version < BuildConfig.VERSION_CODE) { KPrefSample.version = BuildConfig.VERSION_CODE - showChangelog(R.xml.kau_changelog, KPrefSample.textColor) { - titleColor(KPrefSample.textColor) - backgroundColor(KPrefSample.bgColor) - positiveColor(KPrefSample.accentColor) - } + if (!BuildConfig.DEBUG) + showChangelog(R.xml.kau_changelog, KPrefSample.textColor) { + titleColor(KPrefSample.textColor) + backgroundColor(KPrefSample.bgColor) + positiveColor(KPrefSample.accentColor) + } } supportActionBar?.apply { setDisplayHomeAsUpEnabled(false) diff --git a/sample/src/main/res/values/strings_sample.xml b/sample/src/main/res/values/strings_sample.xml index 1e3361e..46a8140 100644 --- a/sample/src/main/res/values/strings_sample.xml +++ b/sample/src/main/res/values/strings_sample.xml @@ -1,5 +1,4 @@ - KAU This is a header This is a description Checkbox 1 -- cgit v1.2.3