Quick question, I got two lists. List A are local photos (Android room database), List B are photos from the network. I want to compare both lists and show a 'favorite' icon if an item from List A is present in List B
Most likely there is no simplier (with the ~same performance) way to do this
r
Remy Benza
04/06/2020, 3:49 PM
Thnx, will try this approach. To complicate my case a little more, it needs to be reactive. So when a user removes an photo from the local database, this needs to be shown in List B immediately. Both are LiveData lists.
Remy Benza
04/06/2020, 3:52 PM
I was looking at .map and .switchMap operators for LiveData but not sure which one would suit my case