Merge "Add support for MNC=00"
This commit is contained in:
@@ -7255,6 +7255,7 @@ package android.content.res {
|
|||||||
field public static final int KEYBOARD_NOKEYS = 1; // 0x1
|
field public static final int KEYBOARD_NOKEYS = 1; // 0x1
|
||||||
field public static final int KEYBOARD_QWERTY = 2; // 0x2
|
field public static final int KEYBOARD_QWERTY = 2; // 0x2
|
||||||
field public static final int KEYBOARD_UNDEFINED = 0; // 0x0
|
field public static final int KEYBOARD_UNDEFINED = 0; // 0x0
|
||||||
|
field public static final int MNC_ZERO = 65535; // 0xffff
|
||||||
field public static final int NAVIGATIONHIDDEN_NO = 1; // 0x1
|
field public static final int NAVIGATIONHIDDEN_NO = 1; // 0x1
|
||||||
field public static final int NAVIGATIONHIDDEN_UNDEFINED = 0; // 0x0
|
field public static final int NAVIGATIONHIDDEN_UNDEFINED = 0; // 0x0
|
||||||
field public static final int NAVIGATIONHIDDEN_YES = 2; // 0x2
|
field public static final int NAVIGATIONHIDDEN_YES = 2; // 0x2
|
||||||
|
|||||||
@@ -54,10 +54,17 @@ public final class Configuration implements Parcelable, Comparable<Configuration
|
|||||||
/**
|
/**
|
||||||
* IMSI MNC (Mobile Network Code), corresponding to
|
* IMSI MNC (Mobile Network Code), corresponding to
|
||||||
* <a href="{@docRoot}guide/topics/resources/providing-resources.html#MccQualifier">mnc</a>
|
* <a href="{@docRoot}guide/topics/resources/providing-resources.html#MccQualifier">mnc</a>
|
||||||
* resource qualifier. 0 if undefined.
|
* resource qualifier. 0 if undefined. Note that the actual MNC may be 0; in order to check
|
||||||
|
* for this use the {@link #MNC_ZERO} symbol.
|
||||||
*/
|
*/
|
||||||
public int mnc;
|
public int mnc;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constant used to to represent MNC (Mobile Network Code) zero.
|
||||||
|
* 0 cannot be used, since it is used to represent an undefined MNC.
|
||||||
|
*/
|
||||||
|
public static final int MNC_ZERO = 0xffff;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Current user preference for the locale, corresponding to
|
* Current user preference for the locale, corresponding to
|
||||||
* <a href="{@docRoot}guide/topics/resources/providing-resources.html#LocaleQualifier">locale</a>
|
* <a href="{@docRoot}guide/topics/resources/providing-resources.html#LocaleQualifier">locale</a>
|
||||||
|
|||||||
@@ -934,6 +934,9 @@ bool AaptGroupEntry::getMncName(const char* name,
|
|||||||
|
|
||||||
if (out) {
|
if (out) {
|
||||||
out->mnc = atoi(val);
|
out->mnc = atoi(val);
|
||||||
|
if (out->mnc == 0) {
|
||||||
|
out->mnc = ACONFIGURATION_MNC_ZERO;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user