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

Commit 04006ccb authored by tom hsu's avatar tom hsu
Browse files

Fix crash due to display name is not set to View.

Flag: EXEMPT bug fix
Fix: b/396700275
Test: manual test
Change-Id: I2a70c4e31c182f99cc4fb3da93ce7911da005429
parent be9c39f0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -165,6 +165,7 @@ public class RenameMobileNetworkDialogFragment extends InstrumentedDialogFragmen
        }
        final CharSequence displayName = SubscriptionUtil.getUniqueSubscriptionDisplayName(
                info, getContext());
        mNameView.setText(displayName);
        if (!TextUtils.isEmpty(displayName)) {
            mNameView.setSelection(Math.min(displayName.length(),
                    getResources().getInteger(R.integer.sim_label_max_length)));