diff options
author | Chiao Cheng <chiaocheng@google.com> | 2013-09-12 16:48:18 -0700 |
---|---|---|
committer | Chiao Cheng <chiaocheng@google.com> | 2013-09-12 16:48:18 -0700 |
commit | e6933be00d2ecc266612a374a62e05352937408e (patch) | |
tree | 042d00b8b481904a955f0e85baeb44b71abefd82 /src/com/android/dialer/CallDetailActivity.java | |
parent | 294de01646354fa7fcb2c4148cacf72256907da9 (diff) |
Changes to detect whether a call is voicemail.
To determine whether to show discovery for caller id.
Bug: 10723396
Change-Id: I924e9a8c05dced4f1ea239c0db71c131bb662da7
Diffstat (limited to 'src/com/android/dialer/CallDetailActivity.java')
-rw-r--r-- | src/com/android/dialer/CallDetailActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |