diff options
author | Samyeoul Choi <sy310.choi@samsung.com> | 2011-02-24 11:03:29 -0800 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2011-02-25 11:28:43 -0800 |
commit | 092238916fd5d10090c0bcad33644778a1f366e7 (patch) | |
tree | 2ea7b40948ae03764b86529054692281d9fa2a56 /telephony/java | |
parent | 9e5b1a49022d08aee8653fd34f3a8cd878618aa5 (diff) | |
download | frameworks_base-092238916fd5d10090c0bcad33644778a1f366e7.zip frameworks_base-092238916fd5d10090c0bcad33644778a1f366e7.tar.gz frameworks_base-092238916fd5d10090c0bcad33644778a1f366e7.tar.bz2 |
Crespo4G: Voicemail: Add 'config_telephony_...' for Sprint
'*86' which is set now as a default at CDMAPhone.java,
is default voicemail number for Verizon.
For Sprint, we use user's own number for voicemail.
So we add codes in CDMAPhone.java to use
'config_telephony_use_own_number_for_voicemail',
and use config.xml to set this value as false.
Then we overlay Sprint's own config.xml file to
override 'config_telephony_use_own_number_for_voicemail' as a true.
Change-Id: I110914bdfa9a79aaba89d3b80edbcf044e9aabee
Diffstat (limited to 'telephony/java')
-rwxr-xr-x | telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java b/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java index 249b050..c11dd0b 100755 --- a/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java +++ b/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java @@ -730,7 +730,14 @@ public class CDMAPhone extends PhoneBase { String number = null; SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getContext()); // TODO: The default value of voicemail number should be read from a system property - number = sp.getString(VM_NUMBER_CDMA, "*86"); + + // Read platform settings for dynamic voicemail number + if (getContext().getResources().getBoolean(com.android.internal + .R.bool.config_telephony_use_own_number_for_voicemail)) { + number = sp.getString(VM_NUMBER_CDMA, getLine1Number()); + } else { + number = sp.getString(VM_NUMBER_CDMA, "*86"); + } return number; } |