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

Feature/code checks #6

Merged
merged 10 commits into from
Sep 11, 2017
Merged

Feature/code checks #6

merged 10 commits into from
Sep 11, 2017

Conversation

drilonrecica
Copy link
Contributor

No description provided.

@drilonrecica drilonrecica self-assigned this Sep 11, 2017
}
// If request is cancelled, the result arrays are empty.
if (requestCode == SmsTool.REQUEST_CODE_ASK_PERMISSIONS
&& grantResults.length <= 0

Choose a reason for hiding this comment

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

I think you should apply brackets here
if (requestCode == SmsTool.REQUEST_CODE_ASK_PERMISSIONS && (grantResults.length <= 0 || grantResults[0] != PackageManager.PERMISSION_GRANTED))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@luckyhandler luckyhandler merged commit e30f343 into develop Sep 11, 2017
@luckyhandler luckyhandler deleted the feature/code-checks branch September 11, 2017 13:56
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.

2 participants