So in Kotlin a == b should translate to a?.equals(b) ?: (b === null) . However comparing resources (resource == R.string.xxxx) seems to always return false even though manually stating resource.equals(R.string.xxxx) compares correctly. Why is that?
juhanla
06/21/2018, 11:49 AM
It is working as intented but i am not
l
lovis
06/21/2018, 12:19 PM
huh? can you please show some code?
j
juhanla
06/21/2018, 12:25 PM
i had a resource list that had .filter for multiple resources. the == worked fine eventually, the issue was in my end.
l
lovis
06/21/2018, 12:28 PM
ah, allright then. good that you could solve your problem 🙂