Fix crash when accidently triggering a second voice note record.

This commit is contained in:
Cody Henthorne
2022-03-21 13:36:03 -04:00
parent 7e6fcb80a3
commit 57fb3e6377

View File

@@ -100,7 +100,7 @@ public final class MicrophoneRecorderView extends FrameLayout implements View.On
case MotionEvent.ACTION_DOWN:
if (!Permissions.hasAll(getContext(), Manifest.permission.RECORD_AUDIO)) {
if (listener != null) listener.onRecordPermissionRequired();
} else {
} else if (state == State.NOT_RUNNING) {
state = State.RUNNING_HELD;
floatingRecordButton.display(event.getX(), event.getY());
lockDropTarget.display();