Preserve leading 0s in mcc mnc

Fixes: 79408450
Test: ApnEditorTest.java
Change-Id: Iad7ffe04f23b30857588e50d7f5f0dd307bd2c6e
Merged-In: Iad7ffe04f23b30857588e50d7f5f0dd307bd2c6e
This commit is contained in:
Jordan Liu
2018-07-13 10:43:47 -07:00
parent eae6f13389
commit f546b97db9
2 changed files with 14 additions and 2 deletions

View File

@@ -440,6 +440,8 @@ public class ApnEditorTest {
@Test
public void formatInteger_shouldParseString() {
assertThat(ApnEditor.formatInteger("42")).isEqualTo("42");
assertThat(ApnEditor.formatInteger("01")).isEqualTo("01");
assertThat(ApnEditor.formatInteger("001")).isEqualTo("001");
}
@Test
@@ -489,4 +491,4 @@ public class ApnEditorTest {
mUri = uri;
}
}
}
}