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

Commit 64eb9271 authored by Shishir Agrawal's avatar Shishir Agrawal
Browse files

Don't send SIM_STATE_CHANGED before boot.

Missed call point in ag/607433.

Bug: 18802536
Change-Id: I42ffc2d16944096573a4a45dba0b6607e8829e05
parent 45736edd
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -548,7 +548,8 @@ public class SubscriptionInfoUpdater extends Handler {


    private void broadcastSimStateChanged(int slotId, String state, String reason) {
    private void broadcastSimStateChanged(int slotId, String state, String reason) {
        Intent i = new Intent(TelephonyIntents.ACTION_SIM_STATE_CHANGED);
        Intent i = new Intent(TelephonyIntents.ACTION_SIM_STATE_CHANGED);
        i.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
        i.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING
                | Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
        i.putExtra(PhoneConstants.PHONE_NAME_KEY, "Phone");
        i.putExtra(PhoneConstants.PHONE_NAME_KEY, "Phone");
        i.putExtra(IccCardConstants.INTENT_KEY_ICC_STATE, state);
        i.putExtra(IccCardConstants.INTENT_KEY_ICC_STATE, state);
        i.putExtra(IccCardConstants.INTENT_KEY_LOCKED_REASON, reason);
        i.putExtra(IccCardConstants.INTENT_KEY_LOCKED_REASON, reason);