Skip to content

Commit

Permalink
Merge pull request google#841 from hayesjordan/multiple-url-beacon
Browse files Browse the repository at this point in the history
Fix crash when a beacon transmits multiple URLs
  • Loading branch information
hayesjordan authored Sep 27, 2016
2 parents 1c174c7 + 6bb7e44 commit 80c8028
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ public void onLeScan(final BluetoothDevice device, final int rssi, final byte[]
if (beacon == null || !URLUtil.isNetworkUrl(beacon.getUrl())) {
return;
}
UrlDevice urlDevice = createUrlDeviceBuilder(TAG + device.getAddress(), beacon.getUrl())
UrlDevice urlDevice = createUrlDeviceBuilder(TAG + device.getAddress() + beacon.getUrl(),
beacon.getUrl())
.setRssi(rssi)
.setTxPower(beacon.getTxPowerLevel())
.setDeviceType(Utils.BLE_DEVICE_TYPE)
Expand Down

0 comments on commit 80c8028

Please sign in to comment.