Do not change voicemail calls to voicemail: uri automatically
Previous change (Change-Id: Iaca971a195144a16f7853e3555375922ad54b81b)
performed some code cleanup/restructuring which caused all calls from
Dialtacts to any voicemail number to be sent as a "voicemail:" CALL
Intent instead of a "tel:" CALL Intent. That change lost post-dial
digits in the process.
This change undoes the portion of that change which translated all
"tel:" calls to voicemail numbers into "voicemail:" calls.
Confirmed that this change does not alter the functionality of a voicemail
call and continues to display the i18n'ed "Voice Mail" string in the
incall screen/dialpad.
bug: 6969236
Change-Id: I41ba17e419e3189a73f8032399deaa78febd525c
diff --git a/src/com/android/contacts/ContactsUtils.java b/src/com/android/contacts/ContactsUtils.java
index 15b33ab..05eb4f6 100644
--- a/src/com/android/contacts/ContactsUtils.java
+++ b/src/com/android/contacts/ContactsUtils.java
@@ -228,9 +228,6 @@
* numbers.
*/
public static Uri getCallUri(String number) {
- if (PhoneNumberUtils.isVoiceMailNumber(number)) {
- return Uri.parse("voicemail:");
- }
if (PhoneNumberUtils.isUriNumber(number)) {
return Uri.fromParts(Constants.SCHEME_SIP, number, null);
}