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

Commit ff533a1b 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

* commit '64eb9271':
  Don't send SIM_STATE_CHANGED before boot.
parents 64c21078 64eb9271
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);