Fix removal of virtual nodes in FabricReconciler

Reviewed By: mdvacca

Differential Revision: D7338949

fbshipit-source-id: 31263c138689f9b3f59deb26851132df04b8a823
This commit is contained in:
Andrew Chen (Eng)
2018-03-21 14:21:37 -07:00
committed by Facebook Github Bot
parent cf036dbc7a
commit c0d27de37e
2 changed files with 19 additions and 11 deletions

View File

@@ -29,8 +29,17 @@ public class ViewAtIndex {
mIndex = index;
}
@Override
public boolean equals(Object obj) {
if (obj == null || obj.getClass() != getClass()) {
return false;
}
ViewAtIndex other = (ViewAtIndex) obj;
return mIndex == other.mIndex && mTag == other.mTag;
}
@Override
public String toString() {
return "[" + mIndex + ", " + mTag + "]";
return "[" + mTag + ", " + mIndex + "]";
}
}