Skip to content

Commit

Permalink
Fixes edge case where mnc = 1, with no mcc field. Fixes iBotPeaches#1072
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Nov 1, 2015
1 parent a4b5c92 commit 5f5f50f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ private String generateQualifiers() {
} else {
ret.append("-mnc00");
}
} else {
if (mnc != 0) {
ret.append("-mnc").append(mnc);
}
}
ret.append(getLocaleString());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ public void shortendedMncTest() throws BrutException {
compareValuesFiles("values-mcc001-mnc01/strings.xml");
}

@Test
public void shortMncHtcTest() throws BrutException {
compareValuesFiles("values-mnc1/strings.xml");
}

@Test
public void anyDpiTest() throws BrutException, IOException {
compareValuesFiles("values-watch/strings.xml");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="test1">test1</string>
</resources>

0 comments on commit 5f5f50f

Please sign in to comment.