Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-d1-dev
diff --git a/src/com/android/server/telecom/CallEndpointController.java b/src/com/android/server/telecom/CallEndpointController.java
index 82164b3..7e11b47 100644
--- a/src/com/android/server/telecom/CallEndpointController.java
+++ b/src/com/android/server/telecom/CallEndpointController.java
@@ -247,8 +247,9 @@
for (BluetoothDevice device : state.getSupportedBluetoothDevices()) {
CallEndpoint endpoint = findMatchingBluetoothEndpoint(device);
if (endpoint == null) {
+ String deviceName = device.getName();
endpoint = new CallEndpoint(
- device.getName() != null ? device.getName() : "",
+ deviceName != null ? deviceName : "",
CallEndpoint.TYPE_BLUETOOTH);
}
newAvailableEndpoints.add(endpoint);