Skip to content

Commit 9c8dffc

Browse files
committed
修复一个判断错误 =_=!
1 parent 41c719d commit 9c8dffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private static void injectObject(Object handler, ViewFinder finder) {
161161
for (int i = 0; i < len; i++) {
162162
ViewInjectInfo info = new ViewInjectInfo();
163163
info.value = Array.get(values, i);
164-
info.parentId = parentIdsLen > i ? 0 : (Integer) Array.get(parentIds, i);
164+
info.parentId = parentIdsLen > i ? (Integer) Array.get(parentIds, i) : 0;
165165
info_annotation_method_map.put(info, annotation, method);
166166
}
167167
} catch (Throwable e) {

0 commit comments

Comments
 (0)