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

Commit 712c2169 authored by Rambo Wang's avatar Rambo Wang Committed by Gerrit Code Review
Browse files

Merge "Ignore updateCarrierService request with invalid phoneId"

parents eede2455 5d652d22
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -597,6 +597,10 @@ public class SubscriptionInfoUpdater extends Handler {
    }

    private void updateCarrierServices(int phoneId, String simState) {
        if (!SubscriptionManager.isValidPhoneId(phoneId)) {
            logd("Ignore updateCarrierServices request with invalid phoneId " + phoneId);
            return;
        }
        CarrierConfigManager configManager =
                (CarrierConfigManager) sContext.getSystemService(Context.CARRIER_CONFIG_SERVICE);
        configManager.updateConfigForPhoneId(phoneId, simState);