can you explain me quickly your steps? Why did you create a new Model? I would have just added a new variable
@ColumnInfo(name = NEWS_TABLE_READ)
val read: Boolean = false
to the News class. Then the background changes depending on this value in the list and when a list item is pressed, then the variable changes to true and gets stored to the DB. Isn't that much easier? Please let me know what you think!
(haha, sorry for destroying your hard work! I hope you don't get me wrong. I'm sure your solutions also work very well and it's amazing what you can already do (!), but sometimes you over-complicate things 😉 )
Hi,
can you explain me quickly your steps? Why did you create a new Model? I would have just added a new variable
to the
News
class. Then the background changes depending on this value in the list and when a list item is pressed, then the variable changes to true and gets stored to the DB. Isn't that much easier? Please let me know what you think!(haha, sorry for destroying your hard work! I hope you don't get me wrong. I'm sure your solutions also work very well and it's amazing what you can already do (!), but sometimes you over-complicate things 😉 )