mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 03:48:12 +03:00
Revert AudioMessageHelper.pauseRecording
This commit is contained in:
parent
400118ed3e
commit
def9fc07bb
1 changed files with 3 additions and 11 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue