Merge pull request #776 from hiqua/fix_766

Restore notification sound customization setting
This commit is contained in:
2021-02-09 07:36:31 -06:00
committed by GitHub
42 changed files with 6 additions and 122 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