commit | df5a9a5f31b1a924d004cf705074a2b4cf93ba31 | [log] [tgz] |
---|---|---|
author | Ashwini Munigala <AshwiniM@codeaurora.org> | Tue Sep 24 15:03:24 2013 +0530 |
committer | Ashwini Munigala <AshwiniM@codeaurora.org> | Tue Sep 24 15:03:24 2013 +0530 |
tree | 28444059cd6cb28790785c2f99ed32988e4d0f0d | |
parent | 0a77b74786b8e73f7ff51e5d0cbe909a38267667 [diff] |
MAP: Email message size in Bytes instead of characters. Set Email Message Body LENGTH in Bytes instead of characters for GetMessage Response. Change-Id: I54bfe74182a64bca584d8bb6e9ec0a7f7cc86287 CRs-fixed: 514436
diff --git a/src/org/codeaurora/bluetooth/map/MapUtils/EmailUtils.java b/src/org/codeaurora/bluetooth/map/MapUtils/EmailUtils.java index dde8b25..5f9e7a7 100755 --- a/src/org/codeaurora/bluetooth/map/MapUtils/EmailUtils.java +++ b/src/org/codeaurora/bluetooth/map/MapUtils/EmailUtils.java
@@ -704,7 +704,7 @@ } bmsg.setBody_msg(sb.toString()); - bmsg.setBody_length(sb.length() + 22); + bmsg.setBody_length(sb.toString().getBytes().length + 22); // Send a bMessage if (V){ Log.v(TAG, "bMessageEmail test\n");