Make standard roaming indicator display indications configurable

Allow the ERI overlay file to specify the text for any built-in strings.
Currently only the hard-coded strings are used for those.

Bug: 2170881
Change-Id: I5d6169696a4558e62587585e17f908f823c54a2b
This commit is contained in:
Libin Tang
2009-10-07 10:29:39 -05:00
committed by Wink Saville
parent 6d02f3f3ff
commit febb94cdbb

View File

@ -282,11 +282,21 @@ public final class EriManager {
}
private EriDisplayInformation getEriDisplayInformation(int roamInd, int defRoamInd){
//int iconIndex = -1;
//int iconMode = -1;
//String iconText = "ERI text";
EriDisplayInformation ret;
// Carrier can use eri.xml to customize any built-in roaming display indications
if (isEriFileLoaded) {
EriInfo eriInfo = getEriInfo(roamInd);
if (eriInfo != null) {
if (DBG) Log.d(LOG_TAG, "ERI roamInd " + roamInd + " found in ERI file");
ret = new EriDisplayInformation(
eriInfo.mIconIndex,
eriInfo.mIconMode,
eriInfo.mEriText);
return ret;
}
}
switch (roamInd) {
// Handling the standard roaming indicator (non-ERI)
case EriInfo.ROAMING_INDICATOR_ON: