Manually routing Accessibility clicks for RecyclerView classes.
DocsUI uses TouchDetector to differentiate mouse/gesture events; this
prevents a11y services to know what logic to run when there's a
ACCESSIBILITY_CLICK event. This CL manually adds these accessibility
click events to child views, and also route these to correct click
callbacks.
Test: Manually done
Bug: 32412100
Bug: 30613053
Change-Id: If3bf2a039b3cb269e32555d1740f0420cfa50b93
(cherry picked from commit 62442459cbd6f49c0ae5c1b66dfd925841e20f3d)
diff --git a/src/com/android/documentsui/NavigationViewManager.java b/src/com/android/documentsui/NavigationViewManager.java
index 07e3824..694381e 100644
--- a/src/com/android/documentsui/NavigationViewManager.java
+++ b/src/com/android/documentsui/NavigationViewManager.java
@@ -27,7 +27,7 @@
import com.android.documentsui.base.State;
import com.android.documentsui.dirlist.AnimationView;
-import java.util.function.Consumer;
+import java.util.function.IntConsumer;
/**
* A facade over the portions of the app and drawer toolbars.
@@ -124,7 +124,7 @@
}
interface Breadcrumb {
- void setup(Environment env, State state, Consumer<Integer> listener);
+ void setup(Environment env, State state, IntConsumer listener);
void show(boolean visibility);
void postUpdate();
}