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

Commit 176eeb9e authored by Grzegorz Kolodziejczyk's avatar Grzegorz Kolodziejczyk Committed by Automerger Merge Worker
Browse files

Merge "tbs: Use contact name instead of caller name as friendly name" am: 72b0bc27

parents 08d72305 72b0bc27
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1472,8 +1472,12 @@ public class BluetoothInCallService extends InCallService {
        String uri = addressUri == null ? null : addressUri.toString();
        int callFlags = call.isIncoming() ? 0 : BluetoothLeCall.FLAG_OUTGOING_CALL;

        return new BluetoothLeCall(call.getTbsCallId(), uri, call.getCallerDisplayName(), state,
                       callFlags);
        String friendlyName = call.getCallerDisplayName();
        if (TextUtils.isEmpty(friendlyName)) {
            friendlyName = call.getContactDisplayName();
        }

        return new BluetoothLeCall(call.getTbsCallId(), uri, friendlyName, state, callFlags);
    }

    private void sendTbsCurrentCallsList() {