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

Commit 99d8e83e authored by Amit Mahajan's avatar Amit Mahajan Committed by Android Git Automerger
Browse files

am 4fa569c2: Merge "Change to not delete part of multipart SMS when waiting...

am 4fa569c2: Merge "Change to not delete part of multipart SMS when waiting for other parts" into mnc-dev

* commit '4fa569c2':
  Change to not delete part of multipart SMS when waiting for other parts
parents e28bf187 4fa569c2
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -423,10 +423,8 @@ public abstract class InboundSmsHandler extends StateMachine {
                        // processMessagePart() returns false, the state machine will be stuck in
                        // DeliveringState until next message is received. Send message to
                        // transition to idle to avoid that so that wakelock can be released
                        log("No broadcast sent. Delete msg from raw table and return to idle " +
                                "state");
                        deleteFromRawTable(inboundSmsTracker.getDeleteWhere(),
                                inboundSmsTracker.getDeleteWhereArgs());
                        log("No broadcast sent on processing EVENT_BROADCAST_SMS in Delivering " +
                                "state. Return to Idle state");
                        sendMessage(EVENT_RETURN_TO_IDLE);
                    }
                    return HANDLED;
@@ -765,7 +763,12 @@ public abstract class InboundSmsHandler extends StateMachine {
            int result = mWapPush.dispatchWapPdu(output.toByteArray(), resultReceiver, this);
            if (DBG) log("dispatchWapPdu() returned " + result);
            // result is Activity.RESULT_OK if an ordered broadcast was sent
            return (result == Activity.RESULT_OK);
            if (result == Activity.RESULT_OK) {
                return true;
            } else {
                deleteFromRawTable(tracker.getDeleteWhere(), tracker.getDeleteWhereArgs());
                return false;
            }
        }

        List<String> carrierPackages = null;