'Question about recycler view item and not saving data in room database after creation
wondering if anyone knows what is happening offhand what my problem is. I will post the code if I need to, but it is a bit messy at the moment and will later. I have a recycler view, and when I hit my add button to add a new item, it adds fine, but when I click some things to change the data on it, it will not change it in the database, in the UI it will change, but not in the database. But when I close out the app, restart, and then try to change the data on the item, it will save in the database. So I dont know what is happening from creation of the item in the view, to not wanting to save the data, maybe something is not initializing until the app restarts or what. I also have an issue, where if I put multiple recycler view items where there is enough to scroll off screen, it will reset the items that I have changed back to their default value, I am not sure if this is related to my first issue. Thank you.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
