From 83264b59736484c948c4758544f4f2e3121a3f65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Tue, 3 Dec 2019 19:39:48 +0100 Subject: [PATCH] [Config] Fix reading backgrounds value. --- .../main/java/pl/szczodrzynski/edziennik/config/ConfigUI.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/config/ConfigUI.kt b/app/src/main/java/pl/szczodrzynski/edziennik/config/ConfigUI.kt index a661148d..58b1e80b 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/config/ConfigUI.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/config/ConfigUI.kt @@ -22,12 +22,12 @@ class ConfigUI(private val config: Config) { private var mHeaderBackground: String? = null var headerBackground: String? - get() { mHeaderBackground = mHeaderBackground ?: config.values.get("headerBackground", null as String?); return mHeaderBackground } + get() { mHeaderBackground = mHeaderBackground ?: config.values.get("headerBg", null as String?); return mHeaderBackground } set(value) { config.set("headerBg", value); mHeaderBackground = value } private var mAppBackground: String? = null var appBackground: String? - get() { mAppBackground = mAppBackground ?: config.values.get("appBackground", null as String?); return mAppBackground } + get() { mAppBackground = mAppBackground ?: config.values.get("appBg", null as String?); return mAppBackground } set(value) { config.set("appBg", value); mAppBackground = value } private var mMiniMenuVisible: Boolean? = null