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

Commit 35ad303d authored by Jiuyu Sun's avatar Jiuyu Sun Committed by Android (Google) Code Review
Browse files

Merge "Use the EuiccManager with correct cardId." into qt-dev

parents 818e2c75 b375bd6c
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1574,9 +1574,10 @@ public class SubscriptionController extends ISub.Stub {
            SubscriptionInfo sub = getSubscriptionInfo(subId);
            if (sub != null && sub.isEmbedded()) {
                // Ignore the result.
                if (DBG) logd("Updating embedded sub nickname.");
                EuiccManager euiccManager = (EuiccManager)
                        mContext.getSystemService(Context.EUICC_SERVICE);
                int cardId = sub.getCardId();
                if (DBG) logd("Updating embedded sub nickname on cardId: " + cardId);
                EuiccManager euiccManager = ((EuiccManager)
                        mContext.getSystemService(Context.EUICC_SERVICE)).createForCardId(cardId);
                euiccManager.updateSubscriptionNickname(subId, displayName,
                        PendingIntent.getService(
                            mContext, 0 /* requestCode */, new Intent(), 0 /* flags */));