mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 20:06:51 +03:00
Remove useless code since CountUpTimer notify on pause and stop
This commit is contained in:
parent
ecc0cb5f0b
commit
3ce757ee4b
1 changed files with 4 additions and 14 deletions
|
@ -248,30 +248,20 @@ class VoiceBroadcastRecorderQ(
|
|||
recordingTicker = CountUpTimer().apply {
|
||||
tickListener = CountUpTimer.TickListener { onTick(elapsedTime()) }
|
||||
resume()
|
||||
onTick(elapsedTime())
|
||||
}
|
||||
}
|
||||
|
||||
fun pause() {
|
||||
recordingTicker?.apply {
|
||||
pause()
|
||||
onTick(elapsedTime())
|
||||
}
|
||||
recordingTicker?.pause()
|
||||
}
|
||||
|
||||
fun resume() {
|
||||
recordingTicker?.apply {
|
||||
resume()
|
||||
onTick(elapsedTime())
|
||||
}
|
||||
recordingTicker?.resume()
|
||||
}
|
||||
|
||||
fun stop() {
|
||||
recordingTicker?.apply {
|
||||
stop()
|
||||
onTick(elapsedTime())
|
||||
recordingTicker = null
|
||||
}
|
||||
recordingTicker?.stop()
|
||||
recordingTicker = null
|
||||
}
|
||||
|
||||
private fun onTick(elapsedTimeMillis: Long) {
|
||||
|
|
Loading…
Reference in a new issue