change the default "Display past events" interval to 1 day
This commit is contained in:
parent
432a624ad1
commit
9dad0d789c
|
@ -7,6 +7,7 @@ import com.simplemobiletools.commons.extensions.getDefaultAlarmTitle
|
||||||
import com.simplemobiletools.commons.extensions.getDefaultAlarmUri
|
import com.simplemobiletools.commons.extensions.getDefaultAlarmUri
|
||||||
import com.simplemobiletools.commons.helpers.ALARM_SOUND_TYPE_NOTIFICATION
|
import com.simplemobiletools.commons.helpers.ALARM_SOUND_TYPE_NOTIFICATION
|
||||||
import com.simplemobiletools.commons.helpers.BaseConfig
|
import com.simplemobiletools.commons.helpers.BaseConfig
|
||||||
|
import com.simplemobiletools.commons.helpers.DAY_MINUTES
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
class Config(context: Context) : BaseConfig(context) {
|
class Config(context: Context) : BaseConfig(context) {
|
||||||
|
@ -55,7 +56,7 @@ class Config(context: Context) : BaseConfig(context) {
|
||||||
set(defaultReminderMinutes3) = prefs.edit().putInt(REMINDER_MINUTES_3, defaultReminderMinutes3).apply()
|
set(defaultReminderMinutes3) = prefs.edit().putInt(REMINDER_MINUTES_3, defaultReminderMinutes3).apply()
|
||||||
|
|
||||||
var displayPastEvents: Int
|
var displayPastEvents: Int
|
||||||
get() = prefs.getInt(DISPLAY_PAST_EVENTS, 0)
|
get() = prefs.getInt(DISPLAY_PAST_EVENTS, DAY_MINUTES)
|
||||||
set(displayPastEvents) = prefs.edit().putInt(DISPLAY_PAST_EVENTS, displayPastEvents).apply()
|
set(displayPastEvents) = prefs.edit().putInt(DISPLAY_PAST_EVENTS, displayPastEvents).apply()
|
||||||
|
|
||||||
var displayEventTypes: Set<String>
|
var displayEventTypes: Set<String>
|
||||||
|
|
Loading…
Reference in New Issue