mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 03:16:02 +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