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:
Taesu Lee
2018-09-07 14:38:28 +09:00
parent bada9f9b46
commit 4b1c6eb2c9
2 changed files with 30 additions and 6 deletions

View File

@@ -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) {