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

Commit 91e5a2d4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "BluetoothInCallService: Release the parent call if there is a conference call"

parents 7b164b44 f2014b25
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -347,6 +347,13 @@ public class BluetoothInCallService extends InCallService {
            if (mCallInfo.isNullCall(call)) {
                return false;
            }
            // release the parent if there is a conference call
            BluetoothCall conferenceCall = getBluetoothCallById(call.getParentId());
            if (!mCallInfo.isNullCall(conferenceCall)
                    && conferenceCall.getState() == Call.STATE_ACTIVE) {
                Log.i(TAG, "BT - hanging up conference call");
                call = conferenceCall;
            }
            call.disconnect();
            return true;
        }