diff options
author | Daisuke Miyakawa <dmiyakawa@google.com> | 2011-11-03 17:36:34 -0700 |
---|---|---|
committer | Daisuke Miyakawa <dmiyakawa@google.com> | 2011-11-03 18:03:44 -0700 |
commit | 13a75ecbb8d8f6b4658dff832133d0fba574d62f (patch) | |
tree | 6e53cf86e471f5b2b622fb0a2bdbefe71d8c2fb3 | |
parent | 02fa41b5f4cdd024e1528cd7ca5a103de3212718 (diff) | |
download | VoiceDialer-ics-mr0-release.tar.gz |
Re-introduce workaround for issue 3090362android-4.0.2_r1ics-mr0-release
This is originally I790da2e1ad1a37130ceaa2bd6cdb7cd779a5925c,
which happened to be ignored during auto-merge.
Bug: 5508989
Change-Id: Ida37ad9d0edf05538fdd9506571c0661463394d6
-rw-r--r-- | src/com/android/voicedialer/CommandRecognizerEngine.java | 13 |
1 files 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 <del>Gingerbread</del> 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); } } |