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

Commit 8729c185 authored by Mallikarjuna GB's avatar Mallikarjuna GB Committed by Andre Eisenbach
Browse files

BT: Don't answer video call as audio only call.

Use case:
1. Connect BT headset.
2. Receive MT video call.
3. Answer using BT headset.

Failure:
Video call gets answered as audio only call.

Root cause:
When answering call from BT headset, we are not checking
the if the call is video call and answering it as audio call.

Fix:
Check if the call is video call when answering with BT headset.

Change-Id: I9f29fee5685302046b2ac3f87e4b844150152a49
parent 0ae2df88
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ public final class BluetoothPhoneServiceImpl {
                    Log.i(TAG, "BT - answering call");
                    Call call = mCallsManager.getRingingCall();
                    if (call != null) {
                        mCallsManager.answerCall(call, 0);
                        mCallsManager.answerCall(call, call.getVideoState());
                        return true;
                    }
                    return false;
@@ -450,7 +450,7 @@ public final class BluetoothPhoneServiceImpl {
            if (activeCall != null) {
                mCallsManager.disconnectCall(activeCall);
                if (ringingCall != null) {
                    mCallsManager.answerCall(ringingCall, 0);
                    mCallsManager.answerCall(ringingCall, ringingCall.getVideoState());
                } else if (heldCall != null) {
                    mCallsManager.unholdCall(heldCall);
                }
@@ -463,7 +463,7 @@ public final class BluetoothPhoneServiceImpl {
                updateHeadsetWithCallState(true /* force */);
                return true;
            } else if (ringingCall != null) {
                mCallsManager.answerCall(ringingCall, 0);
                mCallsManager.answerCall(ringingCall, ringingCall.getVideoState());
                return true;
            } else if (heldCall != null) {
                // CallsManager will hold any active calls when unhold() is called on a