mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2026-08-18 02:53:10 +00:00
### Description Reduce number of feed item events. Only have one type of event, instead of item update AND unread update AND favorite update. This means that on most screens, instead of receiving 2 events when marking something as favorite, we receive only one event with that episode. This means we query the database less frequently. Additionally, for multi-select and similar batch tasks, instead of sending one event per episode, send one combined event for all episodes together. Again, this reduces the number of events we send and therefore the number of database calls we make. Using multi-select to remove/add all favorites feels noticeably faster. Initial prototype: Claude, $2.59 ### Checklist <!-- To help us keep the issue tracker clean and work as efficient as possible, please make sure that you have done all of the following. You can tick the boxes below by placing an x inside the brackets like this: [x] --> - [x] I have read the contribution guidelines: https://github.com/AntennaPod/AntennaPod/blob/develop/CONTRIBUTING.md#submit-a-pull-request - [x] I have performed a self-review of my code, going through my changes line by line and carefully considering why this line change is necessary - [x] I have run the automated code checks using `./gradlew checkstyle lint spotbugsPlayDebug spotbugsDebug` - [x] My code follows the style guidelines of the AntennaPod project: https://antennapod.org/contribute/develop/app/code-style - [x] I have mentioned the corresponding issue and the relevant keyword (e.g., "Closes: #xy") in the description (see https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) - [x] If it is a core feature, I have added automated tests
:event
This module contains EventBus events used for cross-component communication throughout the app.
All classes are plain Java POJOs; subscribers register using GreenRobot EventBus @Subscribe annotations.