adding a config item for vibrating on button press
This commit is contained in:
parent
36a30806a1
commit
ad4e9c53c3
3 changed files with 6 additions and 1 deletions
|
@ -6,7 +6,7 @@ buildscript {
|
|||
propMinSdkVersion = 16
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '3.15.8'
|
||||
propVersionName = '3.15.9'
|
||||
kotlin_version = '1.2.30'
|
||||
support_libs = '27.1.0'
|
||||
}
|
||||
|
|
|
@ -207,4 +207,8 @@ open class BaseConfig(val context: Context) {
|
|||
var snoozeTime: Int
|
||||
get() = prefs.getInt(SNOOZE_TIME, 10)
|
||||
set(snoozeDelay) = prefs.edit().putInt(SNOOZE_TIME, snoozeDelay).apply()
|
||||
|
||||
var vibrateOnButtonPress: Boolean
|
||||
get() = prefs.getBoolean(VIBRATE_ON_BUTTON_PRESS, true)
|
||||
set(vibrateOnButton) = prefs.edit().putBoolean(VIBRATE_ON_BUTTON_PRESS, vibrateOnButton).apply()
|
||||
}
|
||||
|
|
|
@ -66,6 +66,7 @@ const val WAS_ALARM_WARNING_SHOWN = "was_alarm_warning_shown"
|
|||
const val WAS_REMINDER_WARNING_SHOWN = "was_reminder_warning_shown"
|
||||
const val USE_SAME_SNOOZE = "use_same_snooze"
|
||||
const val SNOOZE_TIME = "snooze_delay"
|
||||
const val VIBRATE_ON_BUTTON_PRESS = "vibrate_on_button_press"
|
||||
|
||||
// licenses
|
||||
internal const val LICENSE_KOTLIN = 1
|
||||
|
|
Loading…
Reference in a new issue