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

Request permissions for file chooser #655

Merged
merged 1 commit into from
Mar 2, 2021
Merged

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