mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Delete snooze_interval preference
This commit is contained in:
@@ -101,12 +101,6 @@ open class Preferences(private val storage: Storage) {
|
||||
set(showCompleted) {
|
||||
storage.putBoolean("pref_show_completed", showCompleted)
|
||||
}
|
||||
val snoozeInterval: Long
|
||||
get() = storage.getString("pref_snooze_interval", "15").toLong()
|
||||
|
||||
fun setSnoozeInterval(interval: Int) {
|
||||
storage.putString("pref_snooze_interval", interval.toString())
|
||||
}
|
||||
|
||||
var theme: Int
|
||||
get() = storage.getInt("pref_theme", ThemeSwitcher.THEME_AUTOMATIC)
|
||||
|
||||
@@ -119,9 +119,6 @@ class PreferencesTest : BaseUnitTest() {
|
||||
assertFalse(prefs.shouldMakeNotificationsLed())
|
||||
prefs.setNotificationsLed(true)
|
||||
assertTrue(prefs.shouldMakeNotificationsLed())
|
||||
assertThat(prefs.snoozeInterval, equalTo(15L))
|
||||
prefs.setSnoozeInterval(30)
|
||||
assertThat(prefs.snoozeInterval, equalTo(30L))
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user