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

Commit 47939285 authored by Jordan Liu's avatar Jordan Liu Committed by Android (Google) Code Review
Browse files

Merge "Do not overwrite isEmbedded"

parents c94429d6 9972f9bf
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -558,10 +558,7 @@ public class SubscriptionInfoUpdater extends Handler {
                String msisdn = TelephonyManager.getDefault().getLine1Number(
                        temp.getSubscriptionId());

                UiccSlot uiccSlot = UiccController.getInstance().getUiccSlotForPhone(slotIndex);
                boolean isEuicc = (uiccSlot != null && uiccSlot.isEuicc());
                if (isEuicc != temp.isEmbedded() || !TextUtils.equals(msisdn, temp.getNumber())) {
                    value.put(SubscriptionManager.IS_EMBEDDED, isEuicc);
                if (!TextUtils.equals(msisdn, temp.getNumber())) {
                    value.put(SubscriptionManager.NUMBER, msisdn);
                    mContext.getContentResolver().update(SubscriptionManager.getUriForSubscriptionId(
                            temp.getSubscriptionId()), value, null, null);