Loading android/app/src/com/android/bluetooth/map/BluetoothMapbMessage.java +1 −2 Original line number Original line Diff line number Diff line Loading @@ -746,8 +746,7 @@ public abstract class BluetoothMapbMessage { * END:MSG in the actual message content, it is now safe to use the END:MSG tag * END:MSG in the actual message content, it is now safe to use the END:MSG tag * as terminator, and simply ignore the length field.*/ * as terminator, and simply ignore the length field.*/ /* 2 added to compensate for the removed \r\n */ byte[] rawData = reader.getDataBytes(mBMsgLength); byte[] rawData = reader.getDataBytes(mBMsgLength - (line.getBytes().length + 2)); String data; String data; try { try { data = new String(rawData, "UTF-8"); data = new String(rawData, "UTF-8"); Loading Loading
android/app/src/com/android/bluetooth/map/BluetoothMapbMessage.java +1 −2 Original line number Original line Diff line number Diff line Loading @@ -746,8 +746,7 @@ public abstract class BluetoothMapbMessage { * END:MSG in the actual message content, it is now safe to use the END:MSG tag * END:MSG in the actual message content, it is now safe to use the END:MSG tag * as terminator, and simply ignore the length field.*/ * as terminator, and simply ignore the length field.*/ /* 2 added to compensate for the removed \r\n */ byte[] rawData = reader.getDataBytes(mBMsgLength); byte[] rawData = reader.getDataBytes(mBMsgLength - (line.getBytes().length + 2)); String data; String data; try { try { data = new String(rawData, "UTF-8"); data = new String(rawData, "UTF-8"); Loading