Skip to content

Conversation

AxGord
Copy link
Contributor

@AxGord AxGord commented Mar 1, 2021

No description provided.

@KojiNakamaru KojiNakamaru merged commit 534e72c into gree:master Mar 2, 2021
@KojiNakamaru
Copy link
Member

Thank you!

public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {
switch (requestCode) {
case REQUEST_CODE:
if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {
Copy link
Contributor

@sergei-a-mindojo sergei-a-mindojo Jan 13, 2022

Choose a reason for hiding this comment

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

It seems grantResults could be zero length array.
In our project we are receiving sometimes crashes related to this method.

PS. I cannot reproduce it myself but there are bunch of crashes.

image

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