@@ -689,19 +689,24 @@ class PerformActionsUseCaseImpl @AssistedInject constructor(
689689 val actionType = when (action.direction) {
690690 ActionData .MoveCursor .Direction .START ->
691691 AccessibilityNodeInfo .ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY
692+
692693 ActionData .MoveCursor .Direction .END ->
693694 AccessibilityNodeInfo .ACTION_NEXT_AT_MOVEMENT_GRANULARITY
694695 }
695696
696697 val granularity = when (action.moveType) {
697698 ActionData .MoveCursor .Type .CHAR ->
698699 AccessibilityNodeInfo .MOVEMENT_GRANULARITY_CHARACTER
700+
699701 ActionData .MoveCursor .Type .WORD ->
700702 AccessibilityNodeInfo .MOVEMENT_GRANULARITY_WORD
703+
701704 ActionData .MoveCursor .Type .LINE ->
702705 AccessibilityNodeInfo .MOVEMENT_GRANULARITY_LINE
706+
703707 ActionData .MoveCursor .Type .PARAGRAPH ->
704708 AccessibilityNodeInfo .MOVEMENT_GRANULARITY_PARAGRAPH
709+
705710 ActionData .MoveCursor .Type .PAGE ->
706711 AccessibilityNodeInfo .MOVEMENT_GRANULARITY_PAGE
707712 }
@@ -1040,10 +1045,13 @@ class PerformActionsUseCaseImpl @AssistedInject constructor(
10401045 is Success -> Timber .d(
10411046 " Performed action $action , input event type: $inputEventAction , key meta state: $keyMetaState " ,
10421047 )
1048+
10431049 is KMError -> Timber .d(
1044- " Failed to perform action $action , reason: ${result.getFullMessage(
1045- resourceProvider,
1046- )} , action: $action , input event type: $inputEventAction , key meta state: $keyMetaState " ,
1050+ " Failed to perform action $action , reason: ${
1051+ result.getFullMessage(
1052+ resourceProvider,
1053+ )
1054+ } , action: $action , input event type: $inputEventAction , key meta state: $keyMetaState " ,
10471055 )
10481056 }
10491057
0 commit comments