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

Commit 589466f0 authored by Jordan Liu's avatar Jordan Liu Committed by android-build-merger
Browse files

Merge "Do not overwrite isEmbedded"

am: b231b210

Change-Id: Iff0045dae2b2ce1fe10b5723570803684faca97a
parents d641a634 b231b210
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);