Skip to content

Commit

Permalink
Fix auto-generated requestCode NOT-LIMIT in 16 bits
Browse files Browse the repository at this point in the history
  • Loading branch information
yjfnypeu committed May 4, 2018
1 parent 8fcf4d9 commit c1bbbb0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public void start(Context context) {
private void startActivity(Context context, Intent intent) {
if (context instanceof Activity) {
if (callback != null && requestCode == -1) {
requestCode = sCodeGenerator.nextInt(Integer.MAX_VALUE);
requestCode = sCodeGenerator.nextInt(0x0000FFFF);
}
Activity activity = (Activity) context;
if (options != null && Build.VERSION.SDK_INT >= 16) {
Expand Down

0 comments on commit c1bbbb0

Please sign in to comment.