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

Commit a2d2433c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Tbs: Fix error handling for the join call" into tm-qpr-dev

parents 8381140d 224da013
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -841,6 +841,7 @@ public class TbsGeneric {


                        Map.Entry<UUID, Bearer> firstEntry = null;
                        Map.Entry<UUID, Bearer> firstEntry = null;
                        List<ParcelUuid> parcelUuids = new ArrayList<>();
                        List<ParcelUuid> parcelUuids = new ArrayList<>();
                        result = TbsGatt.CALL_CONTROL_POINT_RESULT_SUCCESS;
                        for (int callIndex : args) {
                        for (int callIndex : args) {
                            Map.Entry<UUID, Bearer> entry = getCallIdByIndex(callIndex);
                            Map.Entry<UUID, Bearer> entry = getCallIdByIndex(callIndex);
                            if (entry == null) {
                            if (entry == null) {
@@ -864,6 +865,10 @@ public class TbsGeneric {
                            parcelUuids.add(new ParcelUuid(entry.getKey()));
                            parcelUuids.add(new ParcelUuid(entry.getKey()));
                        }
                        }


                        if (result != TbsGatt.CALL_CONTROL_POINT_RESULT_SUCCESS) {
                            break;
                        }

                        Bearer bearer = firstEntry.getValue();
                        Bearer bearer = firstEntry.getValue();
                        Request request = new Request(device, parcelUuids, opcode, args[0]);
                        Request request = new Request(device, parcelUuids, opcode, args[0]);
                        int requestId = mLastRequestIdAssigned + 1;
                        int requestId = mLastRequestIdAssigned + 1;