Skip to content

Commit

Permalink
InputService: remove unneeded event types
Browse files Browse the repository at this point in the history
When using currentFocusNode.refresh(), these are not needed anymore.

re #4
  • Loading branch information
bk138 committed May 16, 2024
1 parent 1660d06 commit 23d52f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/res/xml-v30/input_service_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!-- On API 30 and later flagRetrieveInteractiveWindows canRetrieveWindowContent
are needed for onAccessibilityEvent() to trigger -->
<accessibility-service xmlns:android="http://schemas.android.com/apk/res/android"
android:accessibilityEventTypes="typeViewFocused|typeViewClicked|typeViewSelected|typeViewTextChanged|typeViewTextSelectionChanged"
android:accessibilityEventTypes="typeViewFocused|typeViewClicked|typeViewSelected"
android:accessibilityFlags="flagDefault|flagRetrieveInteractiveWindows|flagIncludeNotImportantViews"
android:notificationTimeout="30"
android:description="@string/input_a11y_service_description"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/xml/input_service_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!-- accessibilityFeedbackType seems needed pre API 30 so onAccessibilityEvent() triggers,
but it seems we don't need flagRetrieveInteractiveWindows -->
<accessibility-service xmlns:android="http://schemas.android.com/apk/res/android"
android:accessibilityEventTypes="typeViewFocused|typeViewClicked|typeViewSelected|typeViewTextChanged|typeViewTextSelectionChanged"
android:accessibilityEventTypes="typeViewFocused|typeViewClicked|typeViewSelected"
android:accessibilityFlags="flagDefault|flagIncludeNotImportantViews"
android:notificationTimeout="30"
android:description="@string/input_a11y_service_description"
Expand Down

0 comments on commit 23d52f9

Please sign in to comment.