am 6e72ff90: Merge "Fix latent bug with reinitializing an ObjectAnimator." into honeycomb
* commit '6e72ff9082f82885d738f637d40bfe43d267107a': Fix latent bug with reinitializing an ObjectAnimator.
This commit is contained in:
@@ -340,8 +340,9 @@ public final class ObjectAnimator extends ValueAnimator {
|
|||||||
@Override
|
@Override
|
||||||
public void setTarget(Object target) {
|
public void setTarget(Object target) {
|
||||||
if (mTarget != target) {
|
if (mTarget != target) {
|
||||||
|
final Object oldTarget = mTarget;
|
||||||
mTarget = target;
|
mTarget = target;
|
||||||
if (mTarget != null && target != null && mTarget.getClass() == target.getClass()) {
|
if (oldTarget != null && target != null && oldTarget.getClass() == target.getClass()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// New target type should cause re-initialization prior to starting
|
// New target type should cause re-initialization prior to starting
|
||||||
|
|||||||
Reference in New Issue
Block a user