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

Commit 6bba1ee5 authored by lrichard's avatar lrichard
Browse files

Fix the issue when divides PLMN and RAT

String.split does not work with parameter "+". It
should use "\\+".

Change-Id: I24a5f6d057ee0c875eb6c320faba8cf3d8f3d816
parent 985fe17e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -71,11 +71,11 @@ public class OperatorInfo implements Parcelable {
        mOperatorAlphaLong = operatorAlphaLong;
        mOperatorAlphaShort = operatorAlphaShort;

        mOperatorNumeric = null;
        mOperatorNumeric = operatorNumeric;
        mRadioTech = "";
        /* operatorNumeric format: PLMN+RAT or PLMN */
        if (null != operatorNumeric) {
            String values[] = operatorNumeric.split("+");
            String values[] = operatorNumeric.split("\\+");
            mOperatorNumeric = values[0];
            if (values.length > 1)
                mRadioTech = values[1];