mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/11901: Use safe call for collection item info.
This commit is contained in:
parent
8a13fbbfb3
commit
a4b2acd0cd
@ -185,15 +185,16 @@ class TabTrayViewHolder(
|
|||||||
) {
|
) {
|
||||||
super.onInitializeAccessibilityNodeInfo(host, info)
|
super.onInitializeAccessibilityNodeInfo(host, info)
|
||||||
info?.let {
|
info?.let {
|
||||||
val initialInfo = info.collectionItemInfo
|
info.collectionItemInfo = info.collectionItemInfo?.let { initialInfo ->
|
||||||
info.collectionItemInfo = AccessibilityNodeInfo.CollectionItemInfo.obtain(
|
AccessibilityNodeInfo.CollectionItemInfo.obtain(
|
||||||
newIndex,
|
newIndex,
|
||||||
initialInfo.rowSpan,
|
initialInfo.rowSpan,
|
||||||
initialInfo.columnIndex,
|
initialInfo.columnIndex,
|
||||||
initialInfo.columnSpan,
|
initialInfo.columnSpan,
|
||||||
false,
|
false,
|
||||||
initialInfo.isSelected
|
initialInfo.isSelected
|
||||||
)
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user