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

Commit 802363d9 authored by Yorke Lee's avatar Yorke Lee Committed by Android (Google) Code Review
Browse files

Merge "Correctly send the original address in BluetoothPhoneService if using gateway" into lmp-dev

parents b9d90a66 fb70e1ef
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -514,7 +514,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);