isOngoingCall() in AudioRecorderManager.kt falls through to check audioManager.mode when callState is CALL_STATE_IDLE. On Samsung devices, audioManager.mode can stay stuck on MODE_IN_CALL after a call ends, causing isOngoingCall() to return true incorrectly. This blocks resumeRecording() with "Cannot resume recording during an ongoing call."
Suggestion: return false immediately when callState == CALL_STATE_IDLE instead of falling through to audioManager.mode.
I currently use this in a patch for this library since this was causing problems on some Samsung devices
isOngoingCall()inAudioRecorderManager.ktfalls through to checkaudioManager.modewhencallStateisCALL_STATE_IDLE. On Samsung devices,audioManager.modecan stay stuck onMODE_IN_CALLafter a call ends, causingisOngoingCall()to returntrueincorrectly. This blocksresumeRecording()with "Cannot resume recording during an ongoing call."Suggestion: return
falseimmediately whencallState == CALL_STATE_IDLEinstead of falling through toaudioManager.mode.I currently use this in a patch for this library since this was causing problems on some Samsung devices