Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 103a577c authored by Steven Dao's avatar Steven Dao
Browse files

Add missing actions to getActionSymbolicName

- This improves the output of AccessibilityAction.toString()
  for debugging purposes.

Change-Id: I99274005d826d3e256f7ee3dbaa3315677f2067f
parent 416ee425
Loading
Loading
Loading
Loading
+25 −1
Original line number Original line Diff line number Diff line
@@ -3083,6 +3083,30 @@ public class AccessibilityNodeInfo implements Parcelable {
                return "ACTION_PASTE";
                return "ACTION_PASTE";
            case ACTION_SET_SELECTION:
            case ACTION_SET_SELECTION:
                return "ACTION_SET_SELECTION";
                return "ACTION_SET_SELECTION";
            case ACTION_EXPAND:
                return "ACTION_EXPAND";
            case ACTION_COLLAPSE:
                return "ACTION_COLLAPSE";
            case ACTION_DISMISS:
                return "ACTION_DISMISS";
            case ACTION_SET_TEXT:
                return "ACTION_SET_TEXT";
            case R.id.accessibilityActionShowOnScreen:
                return "ACTION_SHOW_ON_SCREEN";
            case R.id.accessibilityActionScrollToPosition:
                return "ACTION_SCROLL_TO_POSITION";
            case R.id.accessibilityActionScrollUp:
                return "ACTION_SCROLL_UP";
            case R.id.accessibilityActionScrollLeft:
                return "ACTION_SCROLL_LEFT";
            case R.id.accessibilityActionScrollDown:
                return "ACTION_SCROLL_DOWN";
            case R.id.accessibilityActionScrollRight:
                return "ACTION_SCROLL_RIGHT";
            case R.id.accessibilityActionSetProgress:
                return "ACTION_SET_PROGRESS";
            case R.id.accessibilityActionContextClick:
                return "ACTION_CONTEXT_CLICK";
            default:
            default:
                return "ACTION_UNKNOWN";
                return "ACTION_UNKNOWN";
        }
        }