summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorjsh <jsh@google.com>2009-05-29 16:13:48 -0700
committerjsh <jsh@google.com>2009-05-29 17:11:28 -0700
commitef354fdd634de93004fddd7966d70f70a1351ca8 (patch)
treeabc075f7ddc15fd6fe79ee31aa44862a674bcf70 /telephony
parentc3b7e4e7dda7a81e7f1017f17adb717ffb3d50d2 (diff)
downloadframeworks_base-ef354fdd634de93004fddd7966d70f70a1351ca8.zip
frameworks_base-ef354fdd634de93004fddd7966d70f70a1351ca8.tar.gz
frameworks_base-ef354fdd634de93004fddd7966d70f70a1351ca8.tar.bz2
Fix concat SMS for GSM.
Bug 1883998: We only support sending 8-bit references for now. Bug 1885080: Also fix the GsmAlphabetTest, which started failing when SmsHeader was re-worked.
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/com/android/internal/telephony/gsm/GsmSMSDispatcher.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/telephony/java/com/android/internal/telephony/gsm/GsmSMSDispatcher.java b/telephony/java/com/android/internal/telephony/gsm/GsmSMSDispatcher.java
index 347b3af..8bf5d19 100644
--- a/telephony/java/com/android/internal/telephony/gsm/GsmSMSDispatcher.java
+++ b/telephony/java/com/android/internal/telephony/gsm/GsmSMSDispatcher.java
@@ -152,7 +152,13 @@ final class GsmSMSDispatcher extends SMSDispatcher {
concatRef.refNumber = refNumber;
concatRef.seqNumber = i + 1; // 1-based sequence
concatRef.msgCount = msgCount;
- concatRef.isEightBits = false;
+ // TODO: We currently set this to true since our messaging app will never
+ // send more than 255 parts (it converts the message to MMS well before that).
+ // However, we should support 3rd party messaging apps that might need 16-bit
+ // references
+ // Note: It's not sufficient to just flip this bit to true; it will have
+ // ripple effects (several calculations assume 8-bit ref).
+ concatRef.isEightBits = true;
SmsHeader smsHeader = new SmsHeader();
smsHeader.concatRef = concatRef;