Fix targeting transition by transitionName.

Change-Id: I5e51b524a3a249cd2d7dbba3ccb06d0a5ca8fb73
This commit is contained in:
George Mount
2014-06-30 17:31:44 -07:00
parent 1e2b2ba4b3
commit 58bbdbd1f1

View File

@@ -995,7 +995,7 @@ public abstract class Transition implements Cloneable {
*/
public Transition addTarget(String targetName) {
if (targetName != null) {
if (mTargetNames != null) {
if (mTargetNames == null) {
mTargetNames = new ArrayList<String>();
}
mTargetNames.add(targetName);