Pass the constant actionId directly when calling
performAccessibilityAction **Root cause** When constructing an AccessibilityAction, robolectric's ShadowAccessibilityAction uses reflection to get the private static final variable `ACTION_TYPE_MASK` to check if the passed action is a valid action. However, since ag/I744b3a94fe3c3cc3b559758a95ab0b5b181155bb we renamed the internal variable, hence robolectric is not able to find the ACTION_TYPE_MASK variable when using reflection. By passing the action id directly when calling performAccessibilityAction, we don't need to use ShadowAccessibilityAction anymore. Bug: 279082331 Test: atest AccessibilityQuickSettingsTooltipWindowTest Change-Id: Ie956de44c9b19a2d19470ad670866d77ca272b3b
Loading
Please register or sign in to comment