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

Commit 24d90660 authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Remove usage of getAutoPersisting(); it's always false.

Test: basic sanity
Bug: 140763963
Merged-in: I343b65c0c7e6f47dcccb00f01b93018a54a71b44
Change-Id: I343b65c0c7e6f47dcccb00f01b93018a54a71b44
(cherry picked from commit 84ab3ed3)
parent 7bc44233
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -55,7 +55,6 @@ import android.provider.Telephony;
import android.provider.Telephony.Sms.Intents;
import android.service.carrier.CarrierMessagingService;
import android.telephony.Rlog;
import android.telephony.SmsManager;
import android.telephony.SmsMessage;
import android.telephony.SubscriptionManager;
import android.telephony.TelephonyManager;
@@ -1257,15 +1256,6 @@ public abstract class InboundSmsHandler extends StateMachine {
                intent.setComponent(null);
            }

            // TODO: Validate that this is the right place to store the SMS.
            if (SmsManager.getDefault().getAutoPersisting()) {
                final Uri uri = writeInboxMessage(intent);
                if (uri != null) {
                    // Pass this to SMS apps so that they know where it is stored
                    intent.putExtra("uri", uri.toString());
                }
            }

            // Handle app specific sms messages.
            AppSmsManager appManager = mPhone.getAppSmsManager();
            if (appManager.handleSmsReceivedIntent(intent)) {
+0 −5
Original line number Diff line number Diff line
@@ -337,11 +337,6 @@ public class WapPushOverSms implements ServiceConnection {
            return result.statusCode;
        }

        if (SmsManager.getDefault().getAutoPersisting()) {
            // Store the wap push data in telephony
            writeInboxMessage(result.subId, result.parsedPdu);
        }

        /**
         * If the pdu has application ID, WapPushManager substitute the message
         * processing. Since WapPushManager is optional module, if WapPushManager