Add ACTION_TYPE_SEE_MORE to EventInfo to properly log it
Test: ./gradlew createArchive
Bug: 68378574
Change-Id: I2dc3d3747d10ecb0596335b97c5275e2f42bb0db
diff --git a/slices/view/api/current.txt b/slices/view/api/current.txt
index f201238..c9e5878 100644
--- a/slices/view/api/current.txt
+++ b/slices/view/api/current.txt
@@ -44,6 +44,7 @@
method public void setPosition(int, int, int);
field public static final int ACTION_TYPE_BUTTON = 1; // 0x1
field public static final int ACTION_TYPE_CONTENT = 3; // 0x3
+ field public static final int ACTION_TYPE_SEE_MORE = 4; // 0x4
field public static final int ACTION_TYPE_SLIDER = 2; // 0x2
field public static final int ACTION_TYPE_TOGGLE = 0; // 0x0
field public static final int POSITION_CELL = 2; // 0x2
diff --git a/slices/view/src/main/java/androidx/app/slice/widget/EventInfo.java b/slices/view/src/main/java/androidx/app/slice/widget/EventInfo.java
index d45a34d..977f631 100644
--- a/slices/view/src/main/java/androidx/app/slice/widget/EventInfo.java
+++ b/slices/view/src/main/java/androidx/app/slice/widget/EventInfo.java
@@ -55,7 +55,8 @@
*/
@RestrictTo(RestrictTo.Scope.LIBRARY)
@IntDef({
- ACTION_TYPE_TOGGLE, ACTION_TYPE_BUTTON, ACTION_TYPE_SLIDER, ACTION_TYPE_CONTENT
+ ACTION_TYPE_TOGGLE, ACTION_TYPE_BUTTON, ACTION_TYPE_SLIDER, ACTION_TYPE_CONTENT,
+ ACTION_TYPE_SEE_MORE
})
public @interface SliceActionType{}
@@ -78,6 +79,10 @@
* Indicates the event was a tap on the entire row.
*/
public static final int ACTION_TYPE_CONTENT = 3;
+ /**
+ * Indicates the event was a tap on a see more button.
+ */
+ public static final int ACTION_TYPE_SEE_MORE = 4;
/**
* @hide
@@ -243,6 +248,8 @@
return "SLIDER";
case ACTION_TYPE_CONTENT:
return "CONTENT";
+ case ACTION_TYPE_SEE_MORE:
+ return "SEE MORE";
default:
return "unknown action: " + action;
}