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

The selector for the allow button use the resourceId instead of the index #110

Merged
merged 1 commit into from
Jul 26, 2017
Merged

The selector for the allow button use the resourceId instead of the index #110

merged 1 commit into from
Jul 26, 2017

Conversation

crgarridos
Copy link
Contributor

See #108

Is the fist time I submit a pull request, hope I'm not messing up the things :s

@crgarridos crgarridos requested a review from rocboronat as a code owner July 19, 2017 08:30
@rocboronat
Copy link
Member

Nice, thanks @crgarridos ! Let me pass the tests on some devices I have around... :·D

@rocboronat
Copy link
Member

Nice, it works! Going to test it on emulators with all versions with runtime permissions: Android 23, 24, 25, 26... just to check that it works great :·)

@rocboronat
Copy link
Member

Let me share the results of the tests...

Android 23: OK!
Android 24: OK!
Android 25: OK!
Android 26: OK!

😄 Thanks for the work, @crgarridos !

@@ -17,7 +17,8 @@
public class PermissionGranter {

private static final int PERMISSIONS_DIALOG_DELAY = 3000;
private static final int GRANT_BUTTON_INDEX = 1;
private static final String PERMISSIONS_DIALOG_ALLOW_ID = "com.android.packageinstaller:id/permission_allow_button";
// private static final String PERMISSIONS_DIALOG_DENY_ID = "com.android.packageinstaller:id/permission_deny_button";
Copy link
Member

Choose a reason for hiding this comment

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

We will create another method that will use this ID to deny a permission. Thanks for it!

@crgarridos
Copy link
Contributor Author

Great ! Thank to you for the awesome library :)

@rocboronat rocboronat requested a review from alorma July 25, 2017 07:59
@rocboronat rocboronat merged commit 1c7f188 into AdevintaSpain:master Jul 26, 2017
@crgarridos crgarridos deleted the permission-granter-using-id branch July 26, 2017 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants