summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUchenna Okoye <uokoye@google.com>2021-05-15 06:24:38 +0000
committerUchenna Okoye <uokoye@google.com>2021-05-15 06:26:52 +0000
commit63d29cf19cde5da4d7cc779b05812fd0c550eb9f (patch)
tree78689818b7721b566731a3bfe61d2c97a82af1b5
parenta2c5103d1a70245356c6428f77945ce8b829f79e (diff)
downloadMessenger-63d29cf19cde5da4d7cc779b05812fd0c550eb9f.tar.gz
Call showAssist instead of local Interaction to start Assistant
Bug: 183655801 Change-Id: Ie6cd71b6604b4f78e80e1288998765426169ca3f Test: manually
-rw-r--r--src/com/android/car/messenger/core/util/VoiceUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/car/messenger/core/util/VoiceUtil.java b/src/com/android/car/messenger/core/util/VoiceUtil.java
index 16be671..df6ae39 100644
--- a/src/com/android/car/messenger/core/util/VoiceUtil.java
+++ b/src/com/android/car/messenger/core/util/VoiceUtil.java
@@ -106,7 +106,7 @@ public class VoiceUtil {
args.putBundle(KEY_CONVERSATION, tapToReadConversation.toBundle());
}
- activity.startLocalVoiceInteraction(args);
+ activity.showAssist(args);
}
/** Requests Voice request to start a generic compose voice interaction */
@@ -118,7 +118,7 @@ public class VoiceUtil {
PendingIntent sendIntent =
createServiceIntent(ACTION_DIRECT_SEND, /* conversationKey= */ null);
bundle.putParcelable(KEY_SEND_PENDING_INTENT, sendIntent);
- activity.startLocalVoiceInteraction(bundle);
+ activity.showAssist(bundle);
}
/**