ResConfigFlags: added zero-padding of MCC qualifiers.

MCC must be 3-digits long. Official documentation does not specify that, but aapt throws errors if you create e.g. values-mcc1 dir.
This commit is contained in:
Ryszard Wiśniewski 2011-05-01 19:08:01 +02:00
parent 0bd967bacc
commit f05f264182

View File

@ -125,7 +125,7 @@ public class ResConfigFlags {
private String generateQualifiers() {
StringBuilder ret = new StringBuilder();
if (mcc != 0) {
ret.append("-mcc").append(mcc);
ret.append("-mcc").append(String.format("%03d", mcc));
if (mnc != 0) {
ret.append("-mnc").append(mnc);
}