Filter only visible items for accessibility helper
This commit is contained in:
parent
e70a476198
commit
571f1c1af4
|
@ -1300,7 +1300,7 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getVisibleVirtualViews(virtualViewIds: MutableList<Int>?) {
|
override fun getVisibleVirtualViews(virtualViewIds: MutableList<Int>?) {
|
||||||
val sorted = gridItems.sortedBy {
|
val sorted = gridItems.filterVisibleOnCurrentPageOnly().sortedBy {
|
||||||
it.getDockAdjustedTop(rowCount) * 100 + it.left
|
it.getDockAdjustedTop(rowCount) * 100 + it.left
|
||||||
}
|
}
|
||||||
sorted.forEachIndexed { index, homeScreenGridItem ->
|
sorted.forEachIndexed { index, homeScreenGridItem ->
|
||||||
|
|
Loading…
Reference in New Issue