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

Commit 7d100e1e authored by Pavel Zhamaitsiak's avatar Pavel Zhamaitsiak
Browse files

Remove extra space in SPN

For some SIM cards, SPN is returned with trailing spaces.
This causes extra spaces in SPN string when "Wi-Fi Calling" suffix is applied.

Change-Id: I4722441ab54dbf2106c2d3ecdf29ed1ce1253867
parent e51d9185
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -648,7 +648,7 @@ final class GsmServiceStateTracker extends ServiceStateTracker {
                    com.android.internal.R.string.wfcSpnFormat).toString();
            showPlmn = false;
            showSpn = true;
            spn = String.format(format, spn);
            spn = String.format(format, spn.trim());
        } else if (mSS.getVoiceRegState() == ServiceState.STATE_POWER_OFF
                || (showPlmn && TextUtils.equals(spn, plmn))) {
            // airplane mode or spn equals plmn, do not show spn