fix(service): fix a crash that occurred when skipping
This commit is contained in:
@@ -352,6 +352,7 @@ class TimerService : Service() {
|
||||
private suspend fun skipTimer(fromButton: Boolean = false) {
|
||||
val settingsState = _settingsState.value
|
||||
saveTimeToDb()
|
||||
updateProgressSegments()
|
||||
showTimerNotification(0, paused = true, complete = !fromButton)
|
||||
lastSavedDuration = 0
|
||||
startTime = 0L
|
||||
|
||||
@@ -51,7 +51,12 @@ val settingsScreens = listOf(
|
||||
Screen.Settings.Alarm,
|
||||
R.drawable.alarm,
|
||||
R.string.alarm,
|
||||
listOf(R.string.alarm_sound, R.string.sound, R.string.vibrate)
|
||||
listOf(
|
||||
R.string.alarm_sound,
|
||||
R.string.sound,
|
||||
R.string.vibrate,
|
||||
R.string.media_volume_for_alarm
|
||||
)
|
||||
),
|
||||
SettingsNavItem(
|
||||
Screen.Settings.Appearance,
|
||||
|
||||
Reference in New Issue
Block a user