fix(service): fix a crash that occurred when skipping

This commit is contained in:
Nishant Mishra
2025-12-04 12:39:08 +05:30
parent e6f01096c2
commit b059aa388b
2 changed files with 7 additions and 1 deletions

View File

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

View File

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