-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix effects being lost when paused #3084
base: main
Are you sure you want to change the base?
Conversation
📲 You can test the changes from this Pull Request in 📱 Mobile by scanning the QR code below to install the corresponding build.
📲 You can test the changes from this Pull Request in 🚗 Automotive by scanning the QR code below to install the corresponding build.
📲 You can test the changes from this Pull Request in ⌚ Wear by scanning the QR code below to install the corresponding build.
|
remainingTimeText.contentDescription = resources.getString(LR.string.player_time_remaining, remaingingTime.removePrefix("-")) | ||
val remainingTime = (-remainingDuration()).toHhMmSs() | ||
remainingTimeText.text = remainingTime | ||
remainingTimeText.contentDescription = resources.getString(LR.string.player_time_remaining, remainingTime.removePrefix("-")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor typo
podcast = podcast, | ||
chapters = if (sameEpisode) (previousPlaybackState?.chapters ?: Chapters()) else Chapters(), | ||
lastChangeFrom = LastChangeFrom.OnUpdatePausedPlaybackState.value, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The playback effects were not being added here.
I tried changing local playback effects and those reverted to the original value in a paused state: time.changed.webm |
* Bug Fixes | ||
* Fix effects being lost when paused | ||
([#3084](https://github.com/Automattic/pocket-casts-android/pull/3084)) | ||
* Updates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@geekygecko I've moved this PR to 7.77. Please, make sure you update the changelog of this PR to 7.77 too
Thanks for finding this, I will work on a fix tomorrow |
Description
When the app is first open or playback is paused, the player doesn't show that the playback effects are enabled. The reason is that a new PlaybackState is created without the effects.
I have tried to group the initialisation logic and put it in the PlaybackState object. I'm not sure if it should just in the PlaybackManager. 🤔
Fixes #3057
Testing Instructions
Video
Screen.Recording.2024-10-24.at.5.23.39.pm.mov
Checklist
./gradlew spotlessApply
to automatically apply formatting/linting)modules/services/localization/src/main/res/values/strings.xml
I have tested any UI changes...