Skip to content

Android animations that animate a property to its current value do not run. #759

@hamorphis

Description

@hamorphis

Which is incorrect, since at the time the animation is being played, the value might have changed. For example:

    var definitions = new Array();
    definitions.push({ target: view, opacity: 0 });
    definitions.push({ target: view, opacity: 1 });
    var playSequentially = true;
    var animationSet = new animationModule.Animation(definitions, playSequentially);
    animationSet.play().finished
        .then(function () {
        console.log("Animation finished");
    })
        .catch(function (e) {
        console.log(e.message);
    });

The code above will only animate the opacity to zero, because no ObjectAnimator will be created for the second animation since at the time of creation the opacity is 1 and it will simply be skipped. Which is not correct at all.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions