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

Commit 84fd9813 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Only config VoNR per carrier config if card is PRESENT" into sc-v2-dev

parents db7565b9 b2a1630f
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;