Skip to content

[FEATURE] Prioritize callState over audioManager.mode in isOngoingCall() #368

Description

@akidd27

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions