Vibrate when the recording is canceled.

This commit is contained in:
Onuray Sahin 2021-08-10 14:43:16 +03:00
parent bf1db5dcf9
commit 296a1c4770

View file

@ -428,6 +428,10 @@ class VoiceMessageRecorderView @JvmOverloads constructor(
if (recordingState == RecordingState.CANCELLED || recordingState == RecordingState.NONE) { if (recordingState == RecordingState.CANCELLED || recordingState == RecordingState.NONE) {
hideToast() hideToast()
} }
if (isCancelled.orFalse()) {
vibrate(context)
}
} }
private fun resetMicButtonUi() { private fun resetMicButtonUi() {