Skip to content

fix replay issue for android#11

Open
tgalg wants to merge 4 commits intomainfrom
bugfix/android-replaying
Open

fix replay issue for android#11
tgalg wants to merge 4 commits intomainfrom
bugfix/android-replaying

Conversation

@tgalg
Copy link
Copy Markdown

@tgalg tgalg commented Apr 1, 2022

adds an endSong() call at to the componentDidupdate

@tgalg tgalg requested review from TDH55 and scott-massey 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
Copy Markdown
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
Copy Markdown
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?

Co-authored-by: Cameron Nuckols <camnuckols@gmail.com>
@tgalg
Copy link
Copy Markdown
Author

tgalg commented Apr 4, 2022

Copy link
Copy Markdown
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