Merge "[a11y] Fix talkback column and item count for AllAppsGrid" into main

This commit is contained in:
Kevin Lim authored and Android (Google) Code Review committed 2024-12-02 20:52:54 +00:00
commit 79fb6dfbdb
1 file changed
+6
@@ -124,6 +124,12 @@ public class AllAppsGridAdapter<T extends Context & ActivityContext> extends
getRowsNotForAccessibility(mApps.getAdapterItems().size() - 1);
}
@Override
public int getColumnCountForAccessibility(RecyclerView.Recycler recycler,
RecyclerView.State state) {
return mAppsPerRow;
}
@Override
public void onInitializeAccessibilityNodeInfoForItem(RecyclerView.Recycler recycler,
RecyclerView.State state, View host, AccessibilityNodeInfoCompat info) {