aboutsummaryrefslogtreecommitdiff
path: root/sample/src/main/kotlin/ca/allanwang/kau/sample/AboutActivity.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-02-23 15:34:01 -0800
committerAllan Wang <me@allanwang.ca>2020-02-23 15:34:01 -0800
commit3e7f62f89bc4e95cfae7394463e3fd503777011f (patch)
tree0df25ed277c2084d22005bc48be17e05f88dd539 /sample/src/main/kotlin/ca/allanwang/kau/sample/AboutActivity.kt
parent3fa13a3a84d34fd0d96f26d6c5dea0e0671dd6c4 (diff)
downloadkau-3e7f62f89bc4e95cfae7394463e3fd503777011f.tar.gz
kau-3e7f62f89bc4e95cfae7394463e3fd503777011f.tar.bz2
kau-3e7f62f89bc4e95cfae7394463e3fd503777011f.zip
Move config builder out of constructor
Diffstat (limited to 'sample/src/main/kotlin/ca/allanwang/kau/sample/AboutActivity.kt')
-rw-r--r--sample/src/main/kotlin/ca/allanwang/kau/sample/AboutActivity.kt20
1 files changed, 11 insertions, 9 deletions
diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/AboutActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/AboutActivity.kt
index ffe769a..59f1c92 100644
--- a/sample/src/main/kotlin/ca/allanwang/kau/sample/AboutActivity.kt
+++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/AboutActivity.kt
@@ -23,15 +23,17 @@ import com.mikepenz.fastadapter.GenericItem
/**
* Created by Allan Wang on 2017-06-27.
*/
-class AboutActivity : AboutActivityBase(R.string::class.java, {
- cutoutDrawableRes = R.drawable.kau
- textColor = 0xde000000.toInt()
- backgroundColor = 0xfffafafa.toInt()
- accentColor = 0xff00838F.toInt()
- cutoutForeground = 0xff18FFFF.toInt()
- faqXmlRes = R.xml.kau_faq
- faqParseNewLine = false
-}) {
+class AboutActivity : AboutActivityBase(R.string::class.java) {
+
+ override fun Configs.buildConfigs() {
+ cutoutDrawableRes = R.drawable.kau
+ textColor = 0xde000000.toInt()
+ backgroundColor = 0xfffafafa.toInt()
+ accentColor = 0xff00838F.toInt()
+ cutoutForeground = 0xff18FFFF.toInt()
+ faqXmlRes = R.xml.kau_faq
+ faqParseNewLine = false
+ }
override fun postInflateMainPage(adapter: FastItemThemedAdapter<GenericItem>) {
adapter.add(CardIItem {