Fix tice vibration after cancelling the voice record.

This commit is contained in:
Onuray Sahin 2021-08-11 14:59:21 +03:00
parent c2401e04b4
commit a8f4b318c1
1 changed files with 1 additions and 4 deletions

View File

@ -219,6 +219,7 @@ class VoiceMessageRecorderView @JvmOverloads constructor(
}
RecordingState.CANCELLED -> {
hideRecordingViews(isCancelled = true)
vibrate(context)
}
RecordingState.LOCKED -> {
if (isRecordingStateChanged) { // Do not update views if it was already in locked state.
@ -428,10 +429,6 @@ class VoiceMessageRecorderView @JvmOverloads constructor(
if (recordingState == RecordingState.CANCELLED || recordingState == RecordingState.NONE) {
hideToast()
}
if (isCancelled.orFalse()) {
vibrate(context)
}
}
private fun resetMicButtonUi() {