Skip to content

Commit 29477a8

Browse files
committed
fix bug: equality check for ViewInjectInfo
OnScroll & OnScrollStateChanged anotation不能同时起作用
1 parent f18e1ee commit 29477a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/com/lidroid/xutils/view/ViewInjectInfo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ public boolean equals(Object o) {
1717
ViewInjectInfo that = (ViewInjectInfo) o;
1818

1919
if (parentId != that.parentId) return false;
20-
if (value != that.value) return false;
20+
if (value == null) return (null == that.value);
2121

22-
return true;
22+
return value.equals(that.value);
2323
}
2424

2525
@Override

0 commit comments

Comments
 (0)