Fix SMS status handling
Simple matching up CDMA status with GSM TP-Status for common handling. And fix bugleStatusForSMS() for all the permanent error cases. Note: Need to check SC operation for ERROR_TEMPORARY. Test: Manual Change-Id: Ic8136d273dc0c25a4f0690f951d4d8aca20579ff Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
This commit is contained in:
@@ -202,11 +202,11 @@ class SyncMessageBatch {
|
||||
// For a message we sync either
|
||||
if (isOutgoing) {
|
||||
// Outgoing message not yet been sent
|
||||
if (type == Telephony.Sms.MESSAGE_TYPE_FAILED ||
|
||||
type == Telephony.Sms.MESSAGE_TYPE_OUTBOX ||
|
||||
type == Telephony.Sms.MESSAGE_TYPE_QUEUED ||
|
||||
(type == Telephony.Sms.MESSAGE_TYPE_SENT &&
|
||||
status == Telephony.Sms.STATUS_FAILED)) {
|
||||
if (type == Telephony.Sms.MESSAGE_TYPE_FAILED
|
||||
|| type == Telephony.Sms.MESSAGE_TYPE_OUTBOX
|
||||
|| type == Telephony.Sms.MESSAGE_TYPE_QUEUED
|
||||
|| (type == Telephony.Sms.MESSAGE_TYPE_SENT
|
||||
&& status >= Telephony.Sms.STATUS_FAILED)) {
|
||||
// Not sent counts as failed and available for manual resend
|
||||
bugleStatus = MessageData.BUGLE_STATUS_OUTGOING_FAILED;
|
||||
} else if (status == Sms.STATUS_COMPLETE) {
|
||||
|
||||
Reference in New Issue
Block a user