Skip to content
Snippets Groups Projects
Commit eea7551c authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

TV Browser: sanity check

parent f9940163
No related branches found
No related tags found
No related merge requests found
Pipeline #9627 failed with stage
in 3 minutes and 9 seconds
......@@ -123,8 +123,10 @@ class FileTvItemAdapter(private val type: Long, private val eventsHandler: IEven
val scale = newWidth.toFloat() / itemSize
binding.container.animate().scaleX(scale).scaleY(scale).translationZ(scale)
eventsHandler.onItemFocused(binding.root, getItem(layoutPosition))
focusListener?.onFocusChanged(layoutPosition)
if (layoutPosition in dataset.indices) {
eventsHandler.onItemFocused(binding.root, getItem(layoutPosition))
focusListener?.onFocusChanged(layoutPosition)
}
} else {
binding.container.animate().scaleX(1f).scaleY(1f).translationZ(1f)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment