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

Handle looping for Android #213

Closed
wants to merge 2 commits into from
Closed

Handle looping for Android #213

wants to merge 2 commits into from

Conversation

pawlowskim
Copy link

Hello, I needed looping on Android to works the same way as for iOS. I changed current onCompletionListener with custom one, that handles loops. Api is the same for iOS and Android. I'm not java master so any suggestion will be appreciated.

Sorry for formatting :/

-same api as for iOS
@benvium
Copy link
Collaborator

benvium commented Jun 23, 2017

@pawlowskim Thanks for this. Could you try to apply your changes again without all the formatting updates? It's difficult to keep track of changes if the whole file is reformatted

@pawlowskim
Copy link
Author

@benvium Second commit should keep old formatting.

@@ -258,3 +255,39 @@ public void enable(final Boolean enabled) {
return constants;
}
}

class OnCompletionListenerLooped implements OnCompletionListener {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably best to be static class OnCompletionListenerLooped

Copy link
Author

Choose a reason for hiding this comment

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

Why static? Nobody gonna use it outside the RNSoundModule and static is little heavier than private. Isn't it? I'm not java master.

@paulmelnikow
Copy link
Collaborator

Hi! Thank you for this! If you'd like to rebase this work onto latest master I'd be happy to get it merged! 😀

@pawlowskim
Copy link
Author

@paulmelnikow This PR is too old. I have created new one: #586

I will close this.

@pawlowskim pawlowskim closed this Jul 9, 2019
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.

3 participants