From dd8a5403e79667de91a765d308bc7514cbba463f Mon Sep 17 00:00:00 2001 From: Daisuke Miyakawa Date: Thu, 3 Nov 2011 17:36:34 -0700 Subject: Re-introduce workaround for issue 3090362 This is originally I790da2e1ad1a37130ceaa2bd6cdb7cd779a5925c, which happened to be ignored during auto-merge. Bug: 5508989 Change-Id: Ida37ad9d0edf05538fdd9506571c0661463394d6 --- src/com/android/voicedialer/CommandRecognizerEngine.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/com/android/voicedialer/CommandRecognizerEngine.java b/src/com/android/voicedialer/CommandRecognizerEngine.java index 166527e..25f0019 100644 --- a/src/com/android/voicedialer/CommandRecognizerEngine.java +++ b/src/com/android/voicedialer/CommandRecognizerEngine.java @@ -1093,8 +1093,17 @@ public class CommandRecognizerEngine extends RecognizerEngine { // add 'CALL JACK JONES', with valid personId if (count == 0 && contactId != VoiceContact.ID_UNDEFINED) { - addCallIntent(intents, ContentUris.withAppendedId( - Contacts.CONTENT_URI, contactId), literal, "", 0); + // TODO: what should really happen here is, we find + // all phones for this contact, and create a label that + // says "call person X at phone type Y", and add intents + // for each of them to the return list. + // It's too late in Gingerbread ICS to add the strings that + // would be required for this, so we'll just ignore this person. + // See also issue 3090362 and 5551677 + + // ACTION_CALL_PRIVILEGED does not work with Contacts.CONTENT_URI. + // addCallIntent(intents, ContentUris.withAppendedId( + // Contacts.CONTENT_URI, contactId), literal, "", 0); } } -- cgit v1.2.3