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

Commit 43df7527 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/16417870

Change-Id: I6bcf7911c2a1253935f367836a18bb93ee65c49e
parents 5aa75480 84fd9813
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -4738,6 +4738,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;