Skip to content

Commit

Permalink
[Refactor] Fix lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Muntashir Al-Islam <[email protected]>
  • Loading branch information
MuntashirAkon committed Dec 6, 2024
1 parent 4a7d3f9 commit 80cea6c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2360,20 +2360,20 @@ private void clearAccessibilityAction(View view, int viewIndex) {
}

private void replaceAccessibilityActionForState(
View child, AccessibilityActionCompat action, @State int state) {
View child, AccessibilityActionCompat action, @StableState int state) {
ViewCompat.replaceAccessibilityAction(
child, action, null, createAccessibilityViewCommandForState(state));
}

private int addAccessibilityActionForState(
View child, @StringRes int stringResId, @State int state) {
View child, @StringRes int stringResId, @StableState int state) {
return ViewCompat.addAccessibilityAction(
child,
child.getResources().getString(stringResId),
createAccessibilityViewCommandForState(state));
}

private AccessibilityViewCommand createAccessibilityViewCommandForState(@State final int state) {
private AccessibilityViewCommand createAccessibilityViewCommandForState(@StableState final int state) {
return new AccessibilityViewCommand() {
@Override
public boolean perform(@NonNull View view, @Nullable CommandArguments arguments) {
Expand Down

0 comments on commit 80cea6c

Please sign in to comment.