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

Commit 8406ac34 authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Do not update display name from SubscriptionInfoUpdater.

It is already updated in SubscriptionController when sub is added
and later from UiccProfile when carrier config is loaded. This
intermediate update is not required and sometimes leads to issues.

Test: manual
Bug: 131425895
Change-Id: I1af5ae5553b6ed6f982ca353bb4593100f8a45b0
parent 89834a36
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -446,22 +446,6 @@ public class SubscriptionInfoUpdater extends Handler {
                    SubscriptionController.getInstance().setAssociatedPlmns(ehplmns, hplmns, subId);
                }

                SubscriptionInfo subInfo = mSubscriptionManager.getActiveSubscriptionInfo(subId);
                String nameToSet;
                String simCarrierName = tm.getSimOperatorName(subId);

                if (subInfo != null && subInfo.getNameSource() !=
                        SubscriptionManager.NAME_SOURCE_USER_INPUT) {
                    if (!TextUtils.isEmpty(simCarrierName)) {
                        nameToSet = simCarrierName;
                    } else {
                        nameToSet = "CARD " + Integer.toString(slotId + 1);
                    }
                    logd("sim name = " + nameToSet);
                    SubscriptionController.getInstance().setDisplayNameUsingSrc(nameToSet, subId,
                            SubscriptionManager.NAME_SOURCE_DEFAULT_SOURCE);
                }

                /* Update preferred network type and network selection mode on SIM change.
                 * Storing last subId in SharedPreference for now to detect SIM change.
                 */