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

Commit 93642846 authored by Taesu Lee's avatar Taesu Lee Committed by android-build-merger
Browse files

Merge "No need PDU data for deleteMessageFromIcc()" am: 0280bd39 am: aa27371a

am: 4b6e943d

Change-Id: I2b87b4b52f69cc75400773f34215173cd7518d58
parents a588cb66 4b6e943d
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -53,7 +53,6 @@ import com.android.internal.telephony.SmsRawData;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Executor;
@@ -1555,15 +1554,13 @@ public final class SmsManager {
    public boolean
    deleteMessageFromIcc(int messageIndex) {
        boolean success = false;
        byte[] pdu = new byte[SMS_RECORD_LENGTH-1];
        Arrays.fill(pdu, (byte)0xff);

        try {
            ISms iSms = getISmsService();
            if (iSms != null) {
                success = iSms.updateMessageOnIccEfForSubscriber(getSubscriptionId(),
                        ActivityThread.currentPackageName(),
                        messageIndex, STATUS_ON_ICC_FREE, pdu);
                        messageIndex, STATUS_ON_ICC_FREE, null /* pdu */);
            }
        } catch (RemoteException ex) {
            // ignore it