Skip to content

Conversation

@codedsun
Copy link
Contributor

@codedsun codedsun commented Oct 20, 2019

feat: removes unnecessary permission from manifest and corrects flow of sd card permission

Fixed #2897

Changes: Removes unnecessary permission from manifest , flow of sd card permission handled

Screenshots of the change:

@auto-label auto-label bot added the Feature label Oct 20, 2019
@codedsun
Copy link
Contributor Author

@iamareebjamal Check this

Copy link
Member

@iamareebjamal iamareebjamal left a comment

Choose a reason for hiding this comment

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

These are not permissions. These are blocking these permissions

@codedsun codedsun force-pushed the permissions branch 2 times, most recently from 2180888 to d18f9a5 Compare October 20, 2019 17:36
@codedsun codedsun changed the title feat: removes unnecessary permission from manifest and handles flow of sd card permission feat: corrects flow of sd card permission Oct 20, 2019
}

public static boolean shouldShowPermissionRationale(
Object o, int permissionId, String permission) {
Copy link
Member

Choose a reason for hiding this comment

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

Why is this receiving object?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Has always been receiving object, will change it.

public static void requestPermissions(
Activity activity, int permissionId, String... permissions) {
ActivityCompat.requestPermissions(activity, permissions, permissionId);
}
Copy link
Member

Choose a reason for hiding this comment

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

This method is useless. Remove this method

}

public static boolean shouldShowPermissionRationale(Activity activity, String permission) {
return ActivityCompat.shouldShowRequestPermissionRationale(activity, permission);
Copy link
Member

Choose a reason for hiding this comment

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

Same

@codedsun
Copy link
Contributor Author

@iamareebjamal Check it now

@codedsun
Copy link
Contributor Author

@iamareebjamal Please check now

@iamareebjamal
Copy link
Member

I'm travelling. In train RN

@codedsun
Copy link
Contributor Author

@iamareebjamal Please xheck this!

@codedsun
Copy link
Contributor Author

@iamareebjamal please process

@iamareebjamal iamareebjamal merged commit a2db043 into fossasia:development Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Correct flow of requesting sd card permission

2 participants