Decouple information about notifications and updates tab
The AppStatusUpdateManager
stuff that mvp76 wrote for improved notifications in 0.103 was also useful for the new "Updates" tab in 0.103. Thus, info about apps:
- In the process of being downloaded
- Downloaded and awaiting user feedback
- Recently installed
is shared between both the notifications manager and the Updates tab.
This works mostly very well, except for the time when users dismiss notifications. At this point, the information should stay in the Updates tab but disappear from the notification manager.
In order to do this, the AppStatusUpdateManager.AppStatus
objects should have a flag such as notYetDismissed
when they are first added. If they are dismissed, this flag should be changed and the notifications should be removed, but the data about that apps state should remain.
Also, when the AppStatusUpdateService
scans the downloaded .apk files and notifies AppStatusUpdateManager
about its findings, it should not cause a new notification to be shown (e.g. by setting notYetDismissed
to false).