For #11901: Use safe call for collection item info.

fennec/production
mcarare 4 years ago committed by Emily Kager
parent 49b617c999
commit b961fdcf02

@ -185,8 +185,8 @@ class TabTrayViewHolder(
) {
super.onInitializeAccessibilityNodeInfo(host, info)
info?.let {
val initialInfo = info.collectionItemInfo
info.collectionItemInfo = AccessibilityNodeInfo.CollectionItemInfo.obtain(
info.collectionItemInfo = info.collectionItemInfo?.let { initialInfo ->
AccessibilityNodeInfo.CollectionItemInfo.obtain(
newIndex,
initialInfo.rowSpan,
initialInfo.columnIndex,
@ -196,6 +196,7 @@ class TabTrayViewHolder(
)
}
}
}
})
}

Loading…
Cancel
Save