Delete snooze_interval preference

This commit is contained in:
Quentin Hibon
2021-02-09 09:52:55 +01:00
parent bc461e1239
commit 8790c0e87b
42 changed files with 1 additions and 121 deletions

View File

@@ -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)

View File

@@ -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