Add accessibility event for assist disclosure
Bug: 21568059 Change-Id: Ib51d4236fcc87acd54cb5d191197b9b2c6cc54ea
This commit is contained in:
@@ -688,6 +688,11 @@ public final class AccessibilityEvent extends AccessibilityRecord implements Par
|
||||
*/
|
||||
public static final int TYPE_VIEW_CONTEXT_CLICKED = 0x00800000;
|
||||
|
||||
/**
|
||||
* Represents the event of the assistant currently reading the users screen context.
|
||||
*/
|
||||
public static final int TYPE_ASSIST_READING_CONTEXT = 0x01000000;
|
||||
|
||||
/**
|
||||
* Change type for {@link #TYPE_WINDOW_CONTENT_CHANGED} event:
|
||||
* The type of change is not defined.
|
||||
@@ -1413,6 +1418,13 @@ public final class AccessibilityEvent extends AccessibilityRecord implements Par
|
||||
}
|
||||
builder.append("TYPE_VIEW_CONTEXT_CLICKED");
|
||||
eventTypeCount++;
|
||||
}
|
||||
case TYPE_ASSIST_READING_CONTEXT: {
|
||||
if (eventTypeCount > 0) {
|
||||
builder.append(", ");
|
||||
}
|
||||
builder.append("TYPE_ASSIST_READING_CONTEXT");
|
||||
eventTypeCount++;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user