Fix removeTarget to remove by ID instead of index.

Bug 22043875

Change-Id: I47933343381df7c46580279a864ab03d44c992ec
This commit is contained in:
George Mount
2015-06-23 15:42:37 -07:00
parent 82e595fd6e
commit 5697c323a5

View File

@@ -1046,7 +1046,7 @@ public abstract class Transition implements Cloneable {
*/
public Transition removeTarget(int targetId) {
if (targetId > 0) {
mTargetIds.remove(targetId);
mTargetIds.remove((Integer)targetId);
}
return this;
}