Skip to content

Commit

Permalink
Fix usage of device name
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Spielmann <simon.spielmann@gmx.de>
  • Loading branch information
maihacke committed Mar 30, 2023
1 parent 2bdd146 commit 4672bb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ private void updateLocationRelatedStates(ICloudDeviceInformation deviceInformati
String currentId = deviceInformationRecord.getDeviceDiscoveryId();
if (currentId == null || "".equals(currentId)) {
logger.debug("deviceDiscoveryId is empty, using device name for identification.");
currentId = deviceInformationRecord.getDeviceDisplayName();
currentId = deviceInformationRecord.getName();
}
logger.debug("Current data element: [id = {}]", currentId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public void testDiscovery() {
"scdPh": "",
"locationCapable": true,
"trackingInfo": null,
"name": "Simon iPad",
"name": "My iPad",
"isMac": false,
"thisDevice": false,
"deviceClass": "iPad",
Expand Down Expand Up @@ -344,7 +344,7 @@ public void testDiscovery() {
"scdPh": "",
"locationCapable": true,
"trackingInfo": null,
"name": "Simon iPad",
"name": "iPad Air without ID",
"isMac": false,
"thisDevice": false,
"deviceClass": "iPad",
Expand All @@ -370,7 +370,7 @@ public void testDiscovery() {
"locFoundEnabled": false,
"snd": null,
"lostDevice": null,
"deviceDisplayName": "iPad Air without ID",
"deviceDisplayName": "iPad",
"prsId": null,
"audioChannels": [
Expand Down

0 comments on commit 4672bb0

Please sign in to comment.