Skip to content

Commit

Permalink
Merge pull request #1622 from lernerb/patch-1
Browse files Browse the repository at this point in the history
Fix IllegalArgumentException in @touch in butterknife-reflect
  • Loading branch information
JakeWharton committed Aug 7, 2020
2 parents b6268e6 + 50fe5d0 commit afdad5f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ public static Unbinder bind(@NonNull Object target, @NonNull View source) {
findViews(source, onTouch.value(), isRequired(method), method.getName(), View.class);

ViewCollections.set(views, ON_TOUCH, (v, event) -> {
Object returnValue = tryInvoke(method, target, argumentTransformer.transform(v));
Object returnValue = tryInvoke(method, target, argumentTransformer.transform(v, event));
//noinspection SimplifiableConditionalExpression
return propagateReturn
? (boolean) returnValue
Expand Down

0 comments on commit afdad5f

Please sign in to comment.