No categories after deleting all data
jiru opened this issue · 1 comments
jiru commented
Using 1.0.44 APK release from GitHub, one should be able to reproduce this bug.
- Clear app storage and start app.
- Go to Categories and notice the default categories House, Transports etc.
- Go to Settings and tap Delete, confirm deleting all data.
- Go to Categories and notice the categories are still there.
- Go to Home and click "+" to add a new record.
- Bug: a dialog says that no categories are set yet.
- Close the app and restart it.
- Bug: go to Categories and notice there are no categories after all.
I think the excepted behavior here is that:
- The Categories screen should be updated right after "Delete all data" operation completed, reflecting the new state of the database
- The "Delete all data" operation should re-create the default categories, or maybe ask the user what they want to do with the categories.
emavgl commented
Should be fixed in https://github.com/emavgl/oinkoin/releases/tag/1.0.45
Now the categories page is refreshed when coming back from the deletion.
I am closing the issue. Please feel free to comment if something does not work.