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

Wrong code description #303

Open
lexboss777 opened this issue Aug 27, 2019 · 0 comments
Open

Wrong code description #303

lexboss777 opened this issue Aug 27, 2019 · 0 comments

Comments

@lexboss777
Copy link

In this class there is a return statement with a comment:

// This tells Android not to restart the service if it is killed to reclaim resources.
return StartCommandResult.Sticky;

But the docs says the opposite:

START_STICKY
If the system kills the service after onStartCommand() returns, recreate the service and call onStartCommand()...

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

No branches or pull requests

1 participant