So in Kotlin a == b should translate to a?.equals(...
# android
j
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?
It is working as intented but i am not
l
huh? can you please show some code?
j
i had a resource list that had .filter for multiple resources. the == worked fine eventually, the issue was in my end.
l
ah, allright then. good that you could solve your problem 🙂