am 4ad335f8: Compare only network portion to determine if number is voicemail.
Merge commit '4ad335f8c80c1d588426ef796afdd1a682eecd29' into gingerbread
* commit '4ad335f8c80c1d588426ef796afdd1a682eecd29':
Compare only network portion to determine if number is voicemail.
diff --git a/src/com/android/contacts/RecentCallsListActivity.java b/src/com/android/contacts/RecentCallsListActivity.java
index e3213a3..b84fcd4 100644
--- a/src/com/android/contacts/RecentCallsListActivity.java
+++ b/src/com/android/contacts/RecentCallsListActivity.java
@@ -609,7 +609,8 @@
views.callView.setVisibility(View.INVISIBLE);
} else if (number.equals(CallerInfo.PAYPHONE_NUMBER)) {
number = getString(R.string.payphone);
- } else if (number.equals(mVoiceMailNumber)) {
+ } else if (PhoneNumberUtils.extractNetworkPortion(number)
+ .equals(mVoiceMailNumber)) {
number = getString(R.string.voicemail);
} else {
// Just a raw number, and no cache, so format it nicely
@@ -859,7 +860,7 @@
number = getString(R.string.private_num);
} else if (number.equals(CallerInfo.PAYPHONE_NUMBER)) {
number = getString(R.string.payphone);
- } else if (number.equals(mVoiceMailNumber)) {
+ } else if (PhoneNumberUtils.extractNetworkPortion(number).equals(mVoiceMailNumber)) {
number = getString(R.string.voicemail);
numberUri = Uri.parse("voicemail:x");
isVoicemail = true;