diff options
author | Allan Wang <me@allanwang.ca> | 2018-02-23 20:53:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-23 20:53:16 -0500 |
commit | a7e24f0c6bb1c598735eb902cf8cdff8de5dd1da (patch) | |
tree | 98671b65142ea84aac26d455cae1ec1ce99a5cf8 /sample/src/main/kotlin/ca | |
parent | 3d7c85bd97261116a090a7202b0e0ed2625b5d73 (diff) | |
download | kau-a7e24f0c6bb1c598735eb902cf8cdff8de5dd1da.tar.gz kau-a7e24f0c6bb1c598735eb902cf8cdff8de5dd1da.tar.bz2 kau-a7e24f0c6bb1c598735eb902cf8cdff8de5dd1da.zip |
Update/fast adapter (#138)
* Update version and add debug key
* Update fast adapter
* Add debug separation
* Inline functions and remove unused
Diffstat (limited to 'sample/src/main/kotlin/ca')
-rw-r--r-- | sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt | 11 |
1 files changed, 6 insertions, 5 deletions
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) |