diff --git a/app/src/main/kotlin/com/simplemobiletools/voicerecorder/fragments/RecorderFragment.kt b/app/src/main/kotlin/com/simplemobiletools/voicerecorder/fragments/RecorderFragment.kt index 68a9f42..cf19497 100644 --- a/app/src/main/kotlin/com/simplemobiletools/voicerecorder/fragments/RecorderFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/voicerecorder/fragments/RecorderFragment.kt @@ -141,11 +141,11 @@ class RecorderFragment(context: Context, attributeSet: AttributeSet) : MyViewPag private fun refreshView() { toggle_recording_button.setImageDrawable(getToggleButtonIcon()) toggle_pause_button.beVisibleIf(status != RECORDING_STOPPED && isNougatPlus()) + pauseBlinkTimer.cancel() + if (status == RECORDING_PAUSED) { pauseBlinkTimer = Timer() pauseBlinkTimer.scheduleAtFixedRate(getPauseBlinkTask(), 500, 500) - } else { - pauseBlinkTimer.cancel() } if (status == RECORDING_RUNNING) {