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

Commit 51a07911 authored by Harshavardhan Nalajala's avatar Harshavardhan Nalajala Committed by android-build-merger
Browse files

Merge "Correct message length calculation while sending SMS" am: e967003b

am: 2111eebf

* commit '2111eebf':
  Correct message length calculation while sending SMS

Change-Id: Ie7299ec9ae3b03fb72b1a35cbc5cfd96d47be6dc
parents 33ec96f5 2111eebf
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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
                 * as terminator, and simply ignore the length field.*/

                /* 2 added to compensate for the removed \r\n */
                byte[] rawData = reader.getDataBytes(mBMsgLength - (line.getBytes().length + 2));
                byte[] rawData = reader.getDataBytes(mBMsgLength);
                String data;
                try {
                    data = new String(rawData, "UTF-8");