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

Commit 7930c4f1 authored by Jordan Liu's avatar Jordan Liu Committed by android-build-merger
Browse files

Merge "Added interface to get the decimal digit from hex ICCID." am: c173c93c am: 7f25f6d7

am: 4d900522

Change-Id: I320ea9e61cd369be8d1d2f03b5733a0e1ae00abe
parents af65732f 4d900522
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -567,4 +567,12 @@ public class IccUtils {
        } while (valueIndex < endIndex);
        return result;
    }

    public static String getDecimalSubstring(String iccId) {
        int position;
        for (position = 0; position < iccId.length(); position ++) {
            if (!Character.isDigit(iccId.charAt(position))) break;
        }
        return iccId.substring( 0, position );
    }
}