mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 18:30:20 +01:00
Discard voice note recording on error.
This commit is contained in:
@@ -3730,6 +3730,7 @@ public class ConversationParentFragment extends Fragment
|
||||
public void onError(Throwable t) {
|
||||
Toast.makeText(requireContext(), R.string.ConversationActivity_unable_to_record_audio, Toast.LENGTH_LONG).show();
|
||||
Log.e(TAG, "Error in RecordingSession.", t);
|
||||
recordingSession.discardRecording();
|
||||
recordingSession.dispose();
|
||||
recordingSession = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user