handle MNC_ZERO correctly

This commit is contained in:
Connor Tumbleson 2013-11-22 16:22:53 -06:00
parent 6d5d889c27
commit 4b180bd13c

View File

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