Skip to content
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 replay issue for android #11

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

fix replay issue for android #11

wants to merge 4 commits into from

Conversation

tgalg
Copy link

@tgalg tgalg commented Apr 1, 2022

adds an endSong() call at to the componentDidupdate

@tgalg tgalg requested review from scott-massey and TDH55 April 1, 2022 16:32
Comment on lines 205 to 213
if (topScreen && Math.round(progress * 10000) / 10000 >= 1) {
const { updatePlayed, updateProgress, endSong } = this.props

updatePlayed(0)
updateProgress(0)

endSong()
updatePlaying(false)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this same (or very similar) logic exists in ProgressBar, do you have any ideas why it needs to be here for Android? I think we probably need to either move it here entirely or check the platform and only execute this code on Android.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have the same question as Taylor, if the code already exists in ProgressBar, why do we need it here?

@tgalg
Copy link
Author

tgalg commented Apr 4, 2022

Copy link
Contributor

@scott-massey scott-massey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already separately added my comment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants