From 359683804f6e144f11d858a20a4ba3bfaf35a77c Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 20 Aug 2019 20:47:28 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/help/ReadBookConfig.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/help/ReadBookConfig.kt b/app/src/main/java/io/legado/app/help/ReadBookConfig.kt index 30159af98..34183fe63 100644 --- a/app/src/main/java/io/legado/app/help/ReadBookConfig.kt +++ b/app/src/main/java/io/legado/app/help/ReadBookConfig.kt @@ -3,13 +3,18 @@ package io.legado.app.help import android.graphics.drawable.Drawable object ReadBookConfig { - val configList = arrayListOf() + private val configList = arrayListOf() + var styleSelect = 0 var bg: Drawable? = null init { } + fun getConfig(): Config { + return configList[styleSelect] + } + data class Config( var bg: String = "#F3F3F3", var bgInt: Int = 0,