feature req: stop alarm and restart on save #212

Closed
opened 2023-12-27 17:35:57 +00:00 by nutpants · 1 comment

When saving a set it would be nice if it would automatically stop any alarms and timers in progress and start the new timer for alarm. Would save a lot of time.

It may already do this but some times it
Does not.

When saving a set it would be nice if it would automatically stop any alarms and timers in progress and start the new timer for alarm. Would save a lot of time. It may already do this but some times it Does not.

The current code for running an alarm already calls to cancel the timer + notification + alarm:

    fun timer(milliseconds: Int) {
        Log.d("AlarmModule", "Queue alarm for $milliseconds delay")
        val manager = getManager()
        manager.cancel(AlarmService.NOTIFICATION_ID_DONE)
        val intent = Intent(reactApplicationContext, AlarmService::class.java)
        reactApplicationContext.stopService(intent)
        countdownTimer?.cancel()
        countdownTimer = getTimer(milliseconds)
        countdownTimer?.start()
        running = true
    }

Perhaps this ticket should be a bug report instead. In which case please provide:

  1. App version
  2. Steps to re-produce
  3. ADB logs
The current code for running an alarm already calls to cancel the timer + notification + alarm: ```kotlin fun timer(milliseconds: Int) { Log.d("AlarmModule", "Queue alarm for $milliseconds delay") val manager = getManager() manager.cancel(AlarmService.NOTIFICATION_ID_DONE) val intent = Intent(reactApplicationContext, AlarmService::class.java) reactApplicationContext.stopService(intent) countdownTimer?.cancel() countdownTimer = getTimer(milliseconds) countdownTimer?.start() running = true } ``` Perhaps this ticket should be a bug report instead. In which case please provide: 1. App version 2. Steps to re-produce 3. ADB logs
brandon.presley added the
bug
question
labels 2024-02-05 01:44:07 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: brandon.presley/Massive#212
No description provided.