-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Invalidate downloads cache when restoring backup #2574
Description
Steps to reproduce
Take an existing library with some downloads. Create a backup. Then, uninstall and reinstall Mihon, select the same app folder, restore the backup.
Expected behavior
Already-downloaded chapters should still be displayed as downloaded.
Actual behavior
All chapters are displayed as not downloaded, even if they have been. Trying to download an already-downloaded chapter causes an error.
The user has to navigate to advanced settings and use the "invalidate download cache" option. After they do this, the correct state is displayed.
As far as I can tell, the correct behavior is straightforwardly that the download cache needs to be invalidated when the user restores a backup. It's clearly always going to be wrong to trust a newly-created empty downloads cache when there are in fact already downloads.
Crash logs
No response
Mihon version
Android version
Android 16
Device
Google Pixel 6a
Other details
This is the same problem reported in #13, which was closed without the underlying issue being fixed.
Acknowledgements
- I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
- I have written a short but informative title.
- I have gone through the FAQ and troubleshooting guide.
- I have updated the app to version 0.19.1.
- I have filled out all of the requested information in this form, including specific version numbers.
- I understand that Mihon does not have or fix any extensions, and I will not receive help for any issues related to sources or extensions.