From bca1c6b567c68cc83b3e98da6054626fa5b5518d Mon Sep 17 00:00:00 2001 From: Tibor Kaputa Date: Mon, 22 Oct 2018 22:24:30 +0200 Subject: [PATCH] Update Config.kt --- .../kotlin/com/simplemobiletools/calendar/helpers/Config.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/Config.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/Config.kt index a2140bdd1..c7b7c3a45 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/Config.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/Config.kt @@ -78,7 +78,7 @@ class Config(context: Context) : BaseConfig(context) { var defaultView: Int get() = prefs.getInt(DEFAULT_VIEW, DAILY_VIEW) - set(size) = prefs.edit().putInt(DEFAULT_VIEW, size).apply() + set(defaultView) = prefs.edit().putInt(DEFAULT_VIEW, defaultView).apply() var caldavSync: Boolean get() = prefs.getBoolean(CALDAV_SYNC, false)