I am facing a weird issue with data binding expressions in XML.
I need to hide a view inside a recycler view item, when a certain parameter is true. I would normally do the handling in the view holder but data binding offers quick one liners in XML. So this is what I do.
android:visibility="@{restaurant.isOpen == true ? View.GONE : View.VISIBLE}"
The problem is that, sometimes, the view is still visible when isOpen==true. I have checked postman to be sure the param is correct and it is. This seems like an odd recycling issue, but why?
This view is not handled anywhere else, the view holder is empty code-wise.
Anyone had this issue before?