Revert AudioMessageHelper.pauseRecording

This commit is contained in:
Florian Renaud 2022-10-18 13:08:17 +02:00
parent 400118ed3e
commit def9fc07bb

View file

@ -114,13 +114,9 @@ class AudioMessageHelper @Inject constructor(
* When entering in playback mode actually.
*/
fun pauseRecording() {
voiceRecorder.pauseRecord()
pauseRecordingAmplitudes()
}
fun resumeRecording() {
voiceRecorder.resumeRecord()
resumeRecordingAmplitudes()
// TODO should we pause instead of stop?
voiceRecorder.stopRecord()
stopRecordingAmplitudes()
}
fun deleteRecording() {
@ -226,10 +222,6 @@ class AudioMessageHelper @Inject constructor(
}
}
private fun pauseRecordingAmplitudes() {
amplitudeTicker?.pause()
}
private fun resumeRecordingAmplitudes() {
amplitudeTicker?.resume()
}