summaryrefslogtreecommitdiff
path: root/playback
AgeCommit message (Collapse)Author
2024-06-09Spotbugs cleanup part 2 (#7204)Taco
2024-05-29Merge branch 'master' into developByteHamster
2024-05-18Fix android auto resume on reconnect issues (#7156)hades
Previously the MediaSession object created in PlaybackService in onCreate would be completely empty. This seemed to confuse Android Auto, and prevented it from restarting playback. Filling the MediaSession object using the data from the player state at onCreate resolves this problem. This is documented in Android Auto docs[1], albeit indirectly and somewhat confusingly. Also move the setSessionToken call to the end of onCreate handler to ensure that the media session has already been completely filled by the time the session token is made available to the framework. There is no evidence that this is required; however intuitively, this is likely the trigger for the framework to start querying the media session. The change was tested both with Desktop Head Unit and with a real vehicle. [1] https://developer.android.com/training/cars/media/#initial-playback-state
2024-05-09Add episodes without subscribing (#7098)ByteHamster
2024-05-01Playback: remove special handling for Huawei (#7152)hades
This was introduced in 5105cdd7 to prevent crashes on Huawei phones[1]. However, it seems this has already regressed in 376ffed5, where the setActive call was moved outside of the try-catch block. Additionally, the problem is now 9 years old, and hopefully fixed for the users already. [1] https://stackoverflow.com/questions/31556679/android-huawei-mediassessioncompat
2024-04-17Do not enable sleep mode in Android Auto (#7053)hades
When playback is started while an Android Auto projection is active, we want to prevent automatic sleep timer from starting. Note: the androidx.car.app library has not seen a full release since 1.2.0. We opted to use a release candidate here, which has a downgraded minSdk requirement, compatible with the current minSdk of AntennaPod at the time this dependency is introduced.
2024-04-15Work around race condition where position reset might be undone (#7102)ByteHamster
When the position saver ticks while the service is just about to be stopped, it might happen that we first reset the position and then set it to the end again. This works around this.
2024-04-13Add lazy loading to feed item list (#7091)ByteHamster
2024-04-09Target SDK 34 (#7075)ByteHamster
2024-04-07CI tweaks (#7069)ByteHamster
- Run Checkstyle with gradle to make it easier for users - No longer needs different configuration for new code - Exclude current violations - Fix some violations that somehow couldn't be specified in the exclusion file - Print SpotBugs/Lint/Checkstly violations in GitHub format - Then the CI run gets annotated on the web UI
2024-04-07Merge branch 'master' into developByteHamster
2024-04-05Spotbugs cleanup (#6968)Taco
Remove unused SpotBugs rules. Fix URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD, ICAST_INTEGER_MULTIPLY_CAST_TO_LONG, NP_METHOD_PARAMETER_TIGHTENS_ANNOTATION, OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE
2024-04-05Delete core module (#7060)ByteHamster
2024-04-04Move some tests from core module to their respective module (#7059)ByteHamster
2024-04-01Fix playback state not being updated (#7050)ByteHamster
2024-03-29Move playback service to module (#7042)ByteHamster
2024-03-23Rename FeedMedia methods to no longer have underscores (#7017)ByteHamster
2024-03-09Update AndroidX libraries (#6940)Taco
2024-03-03Skip silence setting per feed (#6910)quails4Eva
2023-10-17Bump AGP and Gradle (#6489)Taco
2023-10-13Ignore skip in first second of playback (#6704)ByteHamster
Users complained that they wanted to skip the ending of an episode and accidentally skipped the next one that started while their finger was moving.
2023-07-15Fix Chromecast crash if FeedItem does not have a feed (#6541)ByteHamster
2023-05-05Merge branch 'master' into developByteHamster
2023-04-01Update AGP to 7.4.0 (#5655)Taco
2023-03-14More workarounds for devices that crash when getting a cast context (#6378)ByteHamster
2023-03-06Fix crash on Huawei devices (#6365)ByteHamster
2023-02-26Remove deprecated media players (#6354)ByteHamster
2023-02-17Fix Chromecast on Android 12, use styled receiver (#6321)ByteHamster
2022-11-01No need to define INVALID_TIME multiple timesByteHamster
2022-02-22Delete a few unused thingsByteHamster
2022-02-09Fix some gradle deprecationsTacoTheDank
2021-12-04Centralize library versions used in multiple modulesTacoTheDank
2021-11-28Chromecast rework (#5518)ByteHamster