Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10058] Android: Color animation not reversible

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2012-07-24T11:16:30.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sSprint 2012-15 Core, Release 3.0.0
ComponentsAndroid
Labelscore, module_animation, qe-testadded
ReporterBill Dawson
AssigneeBill Dawson
Created2012-07-20T10:18:40.000+0000
Updated2012-08-13T04:04:01.000+0000

Description

Fail / Test case

* Run the following app.js in an app:

Titanium.UI.setBackgroundColor('#444');
var win = Titanium.UI.createWindow({  
    title:'Test',
    backgroundColor:'#444',
	fullscreen: false,
	exitOnClose: true
});


var v;
win.add(v = Ti.UI.createView({
	width: "200dp", height: "200dp", backgroundColor: "red"
}));

v.addEventListener("click", function() {
	v.animate({backgroundColor: "blue", duration: 1000, autoreverse: true});
});

win.open();
* When the app loads, tap the red box. * In the fail case, it will animate to blue and then _stay blue_. When testing the fix, it should go back to red after blue, because autoreverse is set to true.

Comments

  1. Bill Dawson 2012-07-23

    Pull request ready: https://github.com/appcelerator/titanium_mobile/pull/2624
  2. Evgenii Tcarev 2012-08-10

    Verified fixed with: Titanium Studio, build: 2.1.1.201207271312 Titanium SDK, build: 2.2.0.v20120810132430 Device: Samsung Nexus S (4.1.1)

JSON Source