From e6933be00d2ecc266612a374a62e05352937408e Mon Sep 17 00:00:00 2001 From: Chiao Cheng Date: Thu, 12 Sep 2013 16:48:18 -0700 Subject: Changes to detect whether a call is voicemail. To determine whether to show discovery for caller id. Bug: 10723396 Change-Id: I924e9a8c05dced4f1ea239c0db71c131bb662da7 --- src/com/android/dialer/CallDetailActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/com/android/dialer/CallDetailActivity.java') diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java index e26d2f020..24b59fb3e 100644 --- a/src/com/android/dialer/CallDetailActivity.java +++ b/src/com/android/dialer/CallDetailActivity.java @@ -436,7 +436,7 @@ public class CallDetailActivity extends Activity implements ProximitySensorAware // Cache the details about the phone number. final boolean canPlaceCallsTo = PhoneNumberHelper.canPlaceCallsTo(mNumber, numberPresentation); - final boolean isVoicemailNumber = mPhoneNumberHelper.isVoicemailNumber(mNumber); + final boolean isVoicemailNumber = PhoneNumberHelper.isVoicemailNumber(mNumber); final boolean isSipNumber = mPhoneNumberHelper.isSipNumber(mNumber); // Let user view contact details if they exist, otherwise add option to create new @@ -631,7 +631,7 @@ public class CallDetailActivity extends Activity implements ProximitySensorAware // If this is not a regular number, there is no point in looking it up in the contacts. ContactInfo info = PhoneNumberHelper.canPlaceCallsTo(number, numberPresentation) - && !mPhoneNumberHelper.isVoicemailNumber(number) + && !PhoneNumberHelper.isVoicemailNumber(number) ? mContactInfoHelper.lookupNumber(number, countryIso) : null; if (info == null) { -- cgit v1.2.3