marking the playback tracker as idle when the voice recording stops
- fixes missing EndkeepScreenOn
This commit is contained in:
parent
28af0a637f
commit
9e9116df2f
|
@ -74,6 +74,7 @@ class VoiceMessageHelper @Inject constructor(
|
||||||
voiceRecorder.stopRecord()
|
voiceRecorder.stopRecord()
|
||||||
voiceRecorder.getVoiceMessageFile()
|
voiceRecorder.getVoiceMessageFile()
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
voiceMessageFile?.let {
|
voiceMessageFile?.let {
|
||||||
val outputFileUri = FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID + ".fileProvider", it, "Voice message.${it.extension}")
|
val outputFileUri = FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID + ".fileProvider", it, "Voice message.${it.extension}")
|
||||||
|
@ -153,6 +154,7 @@ class VoiceMessageHelper @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
fun stopPlayback() {
|
fun stopPlayback() {
|
||||||
|
playbackTracker.stopPlayback(VoiceMessagePlaybackTracker.RECORDING_ID)
|
||||||
mediaPlayer?.stop()
|
mediaPlayer?.stop()
|
||||||
stopPlaybackTicker()
|
stopPlaybackTicker()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue