Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a727fa5 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "audio record: fix getPortId() after release"

parents 3229eec3 f3610614
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1788,6 +1788,9 @@ public class AudioRecord implements AudioRouting, MicrophoneDirection,
     * @hide
     * @hide
     */
     */
    public int getPortId() {
    public int getPortId() {
        if (mNativeRecorderInJavaObj == 0) {
            return 0;
        }
        return native_getPortId();
        return native_getPortId();
    }
    }


+3 −0
Original line number Original line Diff line number Diff line
@@ -1624,6 +1624,9 @@ public class MediaRecorder implements AudioRouting,
     * @hide
     * @hide
     */
     */
    public int getPortId() {
    public int getPortId() {
        if (mNativeContext == 0) {
            return 0;
        }
        return native_getPortId();
        return native_getPortId();
    }
    }