App does not fall back to default icon
Steps to Reproduce
- Add an app to Repomaker
- Delete all APKs
Excepted behavior
Repomaker falls back to default icon.
Actual behavior
Repomaker still tries to use the icon from the latest apk.
Suggested solution
When deleting APKPointer
s, delete the icon only if it's not in use.
Additional information
Don't forget to clear the cache when trying to reproduce this!
Log:
GET http://127.0.0.1:8000/media/user_1/repo_41/repo/icons-640/info.guardianproject.browser.7010.png [HTTP/1.0 404 Not Found 16ms]