diff options
author | Libin Tang <Libin.Tang@motorola.com> | 2009-10-07 10:29:39 -0500 |
---|---|---|
committer | Wink Saville <wink@google.com> | 2009-10-12 14:13:04 -0700 |
commit | febb94cdbb7c7b7091401d21824bfab32b9daca5 (patch) | |
tree | 2b8d5dd2b4d1838744837cb648e4c175bae94565 | |
parent | 6d02f3f3ff1962bdcf2a1dcd86b433c9614c3d84 (diff) | |
download | frameworks_base-febb94cdbb7c7b7091401d21824bfab32b9daca5.zip frameworks_base-febb94cdbb7c7b7091401d21824bfab32b9daca5.tar.gz frameworks_base-febb94cdbb7c7b7091401d21824bfab32b9daca5.tar.bz2 |
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
-rw-r--r-- | telephony/java/com/android/internal/telephony/cdma/EriManager.java | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/telephony/java/com/android/internal/telephony/cdma/EriManager.java b/telephony/java/com/android/internal/telephony/cdma/EriManager.java index c018c3f..9b23cdf 100644 --- a/telephony/java/com/android/internal/telephony/cdma/EriManager.java +++ b/telephony/java/com/android/internal/telephony/cdma/EriManager.java @@ -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: |