Skip to content

Commit

Permalink
Fix tice vibration after cancelling the voice record.
Browse files Browse the repository at this point in the history
  • Loading branch information
Onuray Sahin committed Aug 11, 2021
1 parent c2401e0 commit a8f4b31
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -428,10 +429,6 @@ class VoiceMessageRecorderView @JvmOverloads constructor(
if (recordingState == RecordingState.CANCELLED || recordingState == RecordingState.NONE) {
hideToast()
}

if (isCancelled.orFalse()) {
vibrate(context)
}
}

private fun resetMicButtonUi() {
Expand Down

0 comments on commit a8f4b31

Please sign in to comment.