Skip to content

Commit

Permalink
fix: audio rec init twice
Browse files Browse the repository at this point in the history
  • Loading branch information
criticalAY committed Oct 12, 2024
1 parent a84f3ba commit 316fc9f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ class AudioRecordingFragment : MultimediaFragment(R.layout.fragment_audio_record

@NeedsTest("AudioRecordingController is correctly initialized")
private fun initializeAudioRecorder() {
if (audioRecordingController != null) return
Timber.d("Initialising AudioRecordingController")
try {
audioRecordingController = AudioRecordingController(
context = requireActivity(),
Expand Down

0 comments on commit 316fc9f

Please sign in to comment.