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

Commit f745baaf authored by Shishir Agrawal's avatar Shishir Agrawal Committed by android-build-merger
Browse files

Don\'t send SIM_STATE_CHANGED before boot. automerge: 64eb9271

automerge: ff533a1b

* commit 'ff533a1b':
  Don't send SIM_STATE_CHANGED before boot.
parents e56cec93 ff533a1b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -548,7 +548,8 @@ public class SubscriptionInfoUpdater extends Handler {

    private void broadcastSimStateChanged(int slotId, String state, String reason) {
        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(IccCardConstants.INTENT_KEY_ICC_STATE, state);
        i.putExtra(IccCardConstants.INTENT_KEY_LOCKED_REASON, reason);