cancel existing blink requests when refreshing

This commit is contained in:
advait 2023-04-24 19:28:35 +05:30
parent 3ed7e88132
commit abab40e963

View file

@ -142,6 +142,7 @@ class RecorderFragment(context: Context, attributeSet: AttributeSet) : MyViewPag
toggle_recording_button.setImageDrawable(getToggleButtonIcon())
toggle_pause_button.beVisibleIf(status != RECORDING_STOPPED && isNougatPlus())
if (status == RECORDING_PAUSED) {
pauseBlinkTimer.cancel()
pauseBlinkTimer = Timer()
pauseBlinkTimer.scheduleAtFixedRate(getPauseBlinkTask(), 500, 500)
} else {