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

Commit 19d06e79 authored by Tsung-Mao Fang's avatar Tsung-Mao Fang Committed by Gerrit Code Review
Browse files

Merge "Settings: only set phone number if it's not empty"

parents cfb201c4 46f8b184
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -184,7 +184,10 @@ public class RenameMobileNetworkDialogFragment extends InstrumentedDialogFragmen
        phoneTitle.setVisibility(info.isOpportunistic() ? View.GONE : View.VISIBLE);

        final TextView phoneNumber = view.findViewById(R.id.number_value);
        phoneNumber.setText(DeviceInfoUtils.getBidiFormattedPhoneNumber(getContext(), info));
        final String pn = DeviceInfoUtils.getBidiFormattedPhoneNumber(getContext(), info);
        if (!TextUtils.isEmpty(pn)) {
            phoneNumber.setText(pn);
        }
    }

    @Override