fix: Fix a bug that caused notification progress to not update correctly
On Android 15 and lower
This commit is contained in:
@@ -278,6 +278,7 @@ class TimerService : Service() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun resetTimer() {
|
private fun resetTimer() {
|
||||||
|
updateProgressSegments()
|
||||||
skipScope.launch {
|
skipScope.launch {
|
||||||
saveTimeToDb()
|
saveTimeToDb()
|
||||||
time = timerRepository.focusTime
|
time = timerRepository.focusTime
|
||||||
@@ -301,6 +302,7 @@ class TimerService : Service() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun skipTimer(fromButton: Boolean = false) {
|
private fun skipTimer(fromButton: Boolean = false) {
|
||||||
|
updateProgressSegments()
|
||||||
skipScope.launch {
|
skipScope.launch {
|
||||||
saveTimeToDb()
|
saveTimeToDb()
|
||||||
updateProgressSegments()
|
updateProgressSegments()
|
||||||
|
|||||||
Reference in New Issue
Block a user