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

Commit 617bfce3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "BluetoothInCallService: check the parent ID to disconnect a conference...

Merge "BluetoothInCallService: check the parent ID to disconnect a conference call" into sc-dev am: 925370d0

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Bluetooth/+/15334881

Change-Id: Ib18752faee68bb1adb0c5cc58a83e0454a141a57
parents 671ddf06 925370d0
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -733,11 +733,14 @@ public class BluetoothInCallService extends InCallService {
                return false;
            }
            if (!mCallInfo.isNullCall(activeCall)) {
                BluetoothCall conferenceCall = getBluetoothCallById(activeCall.getParentId());
                if (!mCallInfo.isNullCall(conferenceCall)
                        && conferenceCall.getState() == Call.STATE_ACTIVE) {
                    Log.i(TAG, "CHLD: disconnect conference call");
                    conferenceCall.disconnect();
                } else {
                    activeCall.disconnect();
                if (!mCallInfo.isNullCall(ringingCall)) {
                    ringingCall.answer(VideoProfile.STATE_AUDIO_ONLY);
                }
                return true;
            }
            if (!mCallInfo.isNullCall(ringingCall)) {
                ringingCall.answer(ringingCall.getVideoState());