Skip to content

Commit

Permalink
Merge pull request #10 from renaudcerrato/master
Browse files Browse the repository at this point in the history
Fix possible IllegalArgumentException: can only use lower 8 bits for requestCode
  • Loading branch information
canelmas committed Jun 7, 2016
2 parents ae510ae + a88f292 commit 4a501d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private Object proceed(final boolean retry) {

Logger.log("<<< Making permission request");

final int requestCode = PERMISSIONS_REQUEST_CODE.getAndIncrement();
final int requestCode = PERMISSIONS_REQUEST_CODE.getAndIncrement() & 0xff;

DelayedTasks.add(new DelayedTasks.Task(permissionsToAsk, requestCode, joinPoint));

Expand Down

0 comments on commit 4a501d9

Please sign in to comment.