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

Commit 76703298 authored by Amit Mahajan's avatar Amit Mahajan Committed by android-build-merger
Browse files

Merge "Allow renaming inactive subscriptions." into qt-dev am: d133a026

am: 38b3a563

Change-Id: I565cca6519096a3b757a1c990d2cd6fb6e1f6ab9
parents 3077d841 38b3a563
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();