summaryrefslogtreecommitdiffstats
path: root/core/res
diff options
context:
space:
mode:
authorXia Ying <yingxia@motorola.com>2014-09-04 17:12:25 -0500
committerAmit Mahajan <amitmahajan@google.com>2014-09-10 00:11:23 +0000
commitb9515f9c44573118d39506d3d187f5b873a86196 (patch)
treedf7d39760f815b2c5d82310df0f92ac125cdf944 /core/res
parentfb04057bf6d6d21376e9907e559490006cb24fe9 (diff)
downloadframeworks_base-b9515f9c44573118d39506d3d187f5b873a86196.zip
frameworks_base-b9515f9c44573118d39506d3d187f5b873a86196.tar.gz
frameworks_base-b9515f9c44573118d39506d3d187f5b873a86196.tar.bz2
Support to load default voicemail number from the configuration.
If there is no preload VM number in the sim card, carriers such as Verizon require to load a default vm number from the configurantion. Define config_default_vm_number for this purpose. And there are two optional formats for this configuration, example as below: (1)<item>voicemail number</item> (2)<item>voicemail number;gid</item> Bug: 17209959 Change-Id: Ia4e78ad7265e73bb4e4a823dbaeb606935d39f46
Diffstat (limited to 'core/res')
-rw-r--r--core/res/res/values/config.xml15
-rw-r--r--core/res/res/values/symbols.xml1
2 files changed, 16 insertions, 0 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index ed232e2..b36387f 100644
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -1725,4 +1725,19 @@
<item>NTP_SERVER=north-america.pool.ntp.org</item>
<item>SUPL_VER=0x20000</item>
</string-array>
+
+ <!-- If there is no preload VM number in the sim card, carriers such as
+ Verizon require to load a default vm number from the configurantion.
+ Define config_default_vm_number for this purpose. And there are two
+ optional formats for this configuration as below:
+ (1)<item>voicemail number</item>
+ (2)<item>voicemail number;gid</item>
+ The logic to pick up the correct voicemail number:
+ (1) If the config_default_vm_number array has no gid special item, the last one will be
+ picked
+ (2) If the config_default_vm_number array has gid special item and it matches the current
+ sim's gid, it will be picked.
+ (3) If the config_default_vm_number array has gid special item but it doesn't match the
+ current sim's gid, the last one without gid will be picked -->
+ <string-array translatable="false" name="config_default_vm_number" />
</resources>
diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml
index bbd891e..c28f3a6 100644
--- a/core/res/res/values/symbols.xml
+++ b/core/res/res/values/symbols.xml
@@ -2008,4 +2008,5 @@
<java-symbol type="id" name="date_picker_month_day_year_layout" />
<java-symbol type="attr" name="closeItemLayout" />
<java-symbol type="layout" name="resolver_different_item_header" />
+ <java-symbol type="array" name="config_default_vm_number" />
</resources>