Merge "Suggest ADD_CONTACT action by default"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e921cb7a9b
@@ -92,6 +92,9 @@ public final class ConversationAction implements Parcelable {
|
||||
*/
|
||||
public static final String TYPE_SHARE_LOCATION = "share_location";
|
||||
|
||||
/** @hide **/
|
||||
public static final String TYPE_ADD_CONTACT = "add_contact";
|
||||
|
||||
public static final Creator<ConversationAction> CREATOR =
|
||||
new Creator<ConversationAction>() {
|
||||
@Override
|
||||
|
||||
@@ -131,6 +131,7 @@ public final class TextClassificationConstants {
|
||||
.add(ConversationAction.TYPE_TRACK_FLIGHT)
|
||||
.add(ConversationAction.TYPE_VIEW_CALENDAR)
|
||||
.add(ConversationAction.TYPE_VIEW_MAP)
|
||||
.add(ConversationAction.TYPE_ADD_CONTACT)
|
||||
.toString();
|
||||
/**
|
||||
* < 0 : Not set. Use value from LangId model.
|
||||
|
||||
@@ -195,11 +195,13 @@ public class TextClassificationConstantsTest {
|
||||
assertWithMessage("in_app_conversation_action_types_default")
|
||||
.that(constants.getInAppConversationActionTypes())
|
||||
.containsExactly("text_reply", "create_reminder", "call_phone", "open_url",
|
||||
"send_email", "send_sms", "track_flight", "view_calendar", "view_map");
|
||||
"send_email", "send_sms", "track_flight", "view_calendar", "view_map",
|
||||
"add_contact");
|
||||
assertWithMessage("notification_conversation_action_types_default")
|
||||
.that(constants.getNotificationConversationActionTypes())
|
||||
.containsExactly("text_reply", "create_reminder", "call_phone", "open_url",
|
||||
"send_email", "send_sms", "track_flight", "view_calendar", "view_map");
|
||||
"send_email", "send_sms", "track_flight", "view_calendar", "view_map",
|
||||
"add_contact");
|
||||
assertWithMessage("lang_id_threshold_override")
|
||||
.that(constants.getLangIdThresholdOverride()).isWithin(EPSILON).of(-1f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user