mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-22 07:50:19 -04:00
The controller in charge of dismissing an item will have an insight into whether it will cause a re-query for an existing cursor or not. If a re-query will occur in response to a `ContentResolver#notifyChange()` invokation (in this case in response to updating `AppPrefs`), then the `UpdatesAdapter` doesn't need to rebuild itself yet. If it is a status update, then it should update the adapter right away. Seeing as the controller was already returning one thing (a message to be displayed in a `Toast` and now it also needs to return an opinion on whether to rebuild the adapter or not, this has been extracted into a value object which has a message and a rebuild adapter flag.