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

Commit b2a1630f authored by Gary Jian's avatar Gary Jian
Browse files

Only config VoNR per carrier config if card is PRESENT

Bug: 211365731
Test: manual
Change-Id: I6cd4ef88ddcd6c195e51c0f013be5d29e5a05877
parent 3d22075c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -4719,6 +4719,13 @@ public class GsmCdmaPhone extends Phone {
    }

    private void updateVoNrSettings(PersistableBundle config) {
        UiccSlot slot = mUiccController.getUiccSlotForPhone(mPhoneId);

        // If no card is present, do nothing.
        if (slot == null || slot.getCardState() != IccCardStatus.CardState.CARDSTATE_PRESENT) {
            return;
        }

        if (config == null) {
            loge("didn't get the vonr_enabled_bool from the carrier config.");
            return;