small code simplifying
This commit is contained in:
parent
abab40e963
commit
503d9aa7ea
1 changed files with 2 additions and 3 deletions
|
@ -141,12 +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.cancel()
|
||||
pauseBlinkTimer = Timer()
|
||||
pauseBlinkTimer.scheduleAtFixedRate(getPauseBlinkTask(), 500, 500)
|
||||
} else {
|
||||
pauseBlinkTimer.cancel()
|
||||
}
|
||||
|
||||
if (status == RECORDING_RUNNING) {
|
||||
|
|
Loading…
Reference in a new issue