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

Commit fb70e1ef authored by Yorke Lee's avatar Yorke Lee
Browse files

Correctly send the original address in BluetoothPhoneService if using gateway

Bug: 17662993
Change-Id: I3e02f74ace399361033f126bb1e01b8ef5753827
parent b63254cf
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -508,7 +508,12 @@ public final class BluetoothPhoneService extends Service {
        int index = getIndexForCall(call);
        int direction = call.isIncoming() ? 1 : 0;
        boolean isPartOfConference = call.getParentCall() != null;
        Uri addressUri = call.getHandle();
        final Uri addressUri;
        if (call.getGatewayInfo() != null) {
            addressUri = call.getGatewayInfo().getOriginalAddress();
        } else {
            addressUri = call.getHandle();
        }
        String address = addressUri == null ? null : addressUri.getSchemeSpecificPart();
        int addressType = address == null ? -1 : PhoneNumberUtils.toaFromString(address);