-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: main
Are you sure you want to change the base?
Conversation
if (topScreen && Math.round(progress * 10000) / 10000 >= 1) { | ||
const { updatePlayed, updateProgress, endSong } = this.props | ||
|
||
updatePlayed(0) | ||
updateProgress(0) | ||
|
||
endSong() | ||
updatePlaying(false) | ||
} |
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.
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.
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.
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 <[email protected]>
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.
Already separately added my comment!
adds an
endSong()
call at to the componentDidupdate