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
1 changed files with 4 additions and 0 deletions

View File

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