Closed Drumber closed 1 year ago
Possible fix
1. After a library entry was successfully updated, send a new search request to the API to get the updated data.
Implemented temporary fix in 6ed3a45. However, this should be done probably when reworking the local library database.
Steps to reproduce
Issue cause
Normally, the local database (Room) is the single data source of truth. When making changes to the library, the local database gets updated and the change gets shown in the UI. (Handled using a RemoteMediator) When searching the library, the data source is changed directly to the PagingSource and the local database is ignored: https://github.com/Drumber/Kitsune/blob/fa271ed1ac7b4aebcaa57cba3aee1bff8e1806a4/app/src/main/java/io/github/drumber/kitsune/ui/library/LibraryViewModel.kt#L122-L135
Possible fix
or