mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 20:10:04 +03:00
Fix tice vibration after cancelling the voice record.
This commit is contained in:
parent
c2401e04b4
commit
a8f4b318c1
1 changed files with 1 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue