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

Commit 745046c1 authored by Sanket Padawe's avatar Sanket Padawe Committed by Wink Saville
Browse files

Default sim name set to carrier name in sim settings

Default sim name in SIM settings UI should be carrier name untill user
specifies a name for SIM.

Bug: 17732079
Change-Id: I302ad00095fd06b393dbe358b135f031390a3678
parent 22eb414b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -479,6 +479,8 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
            if (mSubInfoRecord != null) {
                if(TextUtils.isEmpty(mSubInfoRecord.displayName)) {
                    setTitle(getCarrierName());
                    mSubInfoRecord.displayName = getCarrierName();
                    SubscriptionManager.setDisplayName(getCarrierName(), mSubInfoRecord.subId);
                } else {
                    setTitle(mSubInfoRecord.displayName);
                }
@@ -546,6 +548,9 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
                    SubscriptionManager.setDisplayName(mSubInfoRecord.displayName,
                        mSubInfoRecord.subId);

                    findRecordBySubId(mSubInfoRecord.subId).displayName =
                        nameText.getText().toString();

                    updateAllOptions();
                    update();
                }