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

Commit d133a026 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Allow renaming inactive subscriptions." into qt-dev

parents b8f7db90 e0285703
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -95,13 +95,9 @@ public class RenameMobileNetworkDialogFragment extends InstrumentedDialogFragmen
        builder.setTitle(R.string.mobile_network_sim_name)
                .setView(view)
                .setPositiveButton(R.string.mobile_network_sim_name_rename, (dialog, which) -> {
                    SubscriptionInfo currentInfo = mSubscriptionManager.getActiveSubscriptionInfo(
                            mSubId);
                    String newName = mNameView.getText().toString();
                    if (currentInfo != null && !currentInfo.getDisplayName().equals(newName)) {
                    mSubscriptionManager.setDisplayName(newName, mSubId,
                            SubscriptionManager.NAME_SOURCE_USER_INPUT);
                    }
                })
                .setNegativeButton(android.R.string.cancel, null);
        return builder.create();