Skip to content

Commit 2592309

Browse files
committed
注入的时间方法可以为私有方法
1 parent b548df9 commit 2592309

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/src/com/lidroid/xutils/ViewUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ private static void injectObject(Object handler, ViewFinder finder) {
156156
for (Annotation annotation : annotations) {
157157
Class<?> annType = annotation.annotationType();
158158
if (annType.getAnnotation(EventBase.class) != null) {
159+
method.setAccessible(true);
159160
if (annType.getCanonicalName().startsWith(prefix)) {
160161
try {
161162
// ProGuard:-keep class * extends java.lang.annotation.Annotation { *; }

0 commit comments

Comments
 (0)