Skip to content

Fix missing event when reaching the end of a credit#1136

Merged
MGaetan89 merged 2 commits intomainfrom
fix-end-credit-event
Aug 15, 2025
Merged

Fix missing event when reaching the end of a credit#1136
MGaetan89 merged 2 commits intomainfrom
fix-end-credit-event

Conversation

@MGaetan89
Copy link
Contributor

Pull request

Description

Currently, when reaching the end of a credit, we call PillarboxExoPlayer.notifyTimeRangeChanged(null), where notifyTimeRangeChanged() takes a TimeRange.
However, when passing null, we don't know what kind of time range we should handle. This means that we never call PillarboxPlayer.Listener.onCreditChanged().
This PR fixes that by splitting notifyTimeRangeChanged() in three distinct methods: notifyBlockedTimeRangeChanged(), notifyChapterChange(), and notifyCreditChange().

Changes made

  • Self-explanatory.

Checklist

  • APIs have been properly documented (if relevant).
  • The documentation has been updated (if relevant).
  • New unit tests have been written (if relevant).
  • The demo has been updated (if relevant).

@MGaetan89 MGaetan89 self-assigned this Aug 11, 2025
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Pillarbox Aug 11, 2025
@MGaetan89 MGaetan89 moved this from 📋 Backlog to 🍿 Code Review in Pillarbox Aug 11, 2025
@MGaetan89 MGaetan89 moved this from 🍿 Code Review to 🚧 In Progress in Pillarbox Aug 11, 2025
@MGaetan89 MGaetan89 force-pushed the fix-end-credit-event branch from 9a25ae0 to b0a7bcf Compare August 12, 2025 06:43
@MGaetan89 MGaetan89 force-pushed the fix-end-credit-event branch 6 times, most recently from 101a06f to f56a16c Compare August 12, 2025 09:37
@MGaetan89 MGaetan89 force-pushed the fix-end-credit-event branch from f56a16c to 6875bc8 Compare August 12, 2025 09:43
@github-actions
Copy link

github-actions bot commented Aug 12, 2025

Code Coverage

Overall Project 49.53% -0.05% 🟢
Files changed 87.69% 🟢

Module Coverage
:pillarbox-player 55.17% -0.09% 🟢
Files
Module File Coverage
:pillarbox-player BlockedTimeRangeTracker.kt 100% 🟢
PillarboxMediaMetaDataTracker.kt 92.22% -3.56% 🟢
PillarboxExoPlayer.kt 72.74% 🟢

@MGaetan89 MGaetan89 moved this from 🚧 In Progress to 🍿 Code Review in Pillarbox Aug 12, 2025
@MGaetan89 MGaetan89 requested a review from StaehliJ August 12, 2025 10:01
@MGaetan89 MGaetan89 force-pushed the fix-end-credit-event branch from 338e9df to c796d25 Compare August 13, 2025 14:30
@MGaetan89 MGaetan89 force-pushed the fix-end-credit-event branch from c796d25 to 4bd59eb Compare August 13, 2025 14:38
@MGaetan89 MGaetan89 added this pull request to the merge queue Aug 15, 2025
Merged via the queue into main with commit 94212f7 Aug 15, 2025
12 checks passed
@MGaetan89 MGaetan89 deleted the fix-end-credit-event branch August 15, 2025 09:06
@github-project-automation github-project-automation bot moved this from 🍿 Code Review to ✅ Done in Pillarbox Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants