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

Commit c7a930d5 authored by Hemant Gupta's avatar Hemant Gupta Committed by android-build-merger
Browse files

Merge "MAP: Remove handling for ACTION_MESSAGE_DELIVERY" am: 999b72ca

am: 4b618d5e

Change-Id: I6cbcc8c32343d5b403df9481e3002f2a957ec8a1
parents c6e4f206 4b618d5e
Loading
Loading
Loading
Loading
+0 −19
Original line number Diff line number Diff line
@@ -3089,25 +3089,6 @@ public class BluetoothMapContentObserver {
                int status = -1;
                if(msgInfo.timestamp == timestamp) {
                    msgInfo.partsDelivered++;
                    byte[] pdu = intent.getByteArrayExtra("pdu");
                    String format = intent.getStringExtra("format");

                    SmsMessage message = SmsMessage.createFromPdu(pdu, format);
                    if (message == null) {
                        Log.d(TAG, "actionMessageDelivery: Can't get message from pdu");
                        return;
                    }
                    status = message.getStatus();
                    if(status != 0/*0 is success*/) {
                        msgInfo.statusDelivered = status;
                        if(D) Log.d(TAG, "msgInfo.statusDelivered = " + status);
                        Sms.moveMessageToFolder(mContext, msgInfo.uri, Sms.MESSAGE_TYPE_FAILED, 0);
                    } else {
                        Sms.moveMessageToFolder(mContext, msgInfo.uri, Sms.MESSAGE_TYPE_SENT, 0);
                    }
                }
                if (msgInfo.partsDelivered == msgInfo.parts) {
                    actionMessageDelivery(context, intent, msgInfo);
                }
            } else {
                Log.d(TAG, "onReceive: Unknown action " + action);