{ "id": "93089", "key": "TIMOB-9495", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13404", "description": "Sprint 2012-12 Core", "name": "Sprint 2012-12 Core", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-15T13:26:43.000+0000", "created": "2012-06-12T03:19:30.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "module_animation", "qe-and060112", "qe-testadded", "regression" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2012-07-03T15:06:56.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "An animated view object does not animate properly the second time.\r\n\r\nThis is a regression. The behavior does not happen on 2.0.2\r\n\r\nSteps to Reproduce:\r\n1. Create an application with the Sample code for animation, as given below\r\n2. Run the application\r\n3. Click on Red View. The red view animates.\r\n4. After the animation is completed, again click on the Red view\r\n\r\nActual Result: The red view scales for once and stays\r\n\r\nExpected: The red view should animate each time it is clicked\r\n\r\nSample Code\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'green'\r\n});\r\n\r\nvar box = Ti.UI.createView({\r\n\t\t\tbackgroundColor : 'red',\r\n\t\t\theight : '150',\r\n\t\t\twidth : '100'\r\n\t\t});\r\n\r\n\t\tbox.addEventListener('click', function() {\r\n\t\t\tvar matrix = Ti.UI.create2DMatrix()\r\n\t\t\t\r\n\t\t\tmatrix = matrix.scale(2, 2);\r\n\t\t\tvar a = Ti.UI.createAnimation({\r\n\t\t\t\ttransform : matrix,\r\n\t\t\t\tduration : 2000,\r\n\t\t\t\tautoreverse : true,\r\n\t\t\t\trepeat : 3\r\n\t\t\t});\r\n\t\t\tbox.animate(a);\r\n\t\t});\r\n\t\twin.add(box);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Animation: An animated object does not animate correctly the second time", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.0.201206081630\r\nTitanium SDK: 2.1.0.v20120611174309\r\nAndroid Device: Android Tab (V3.2), Galaxy Nexus (V4.0.2)\r\nRuntime: v8", "comment": { "comments": [ { "id": "198442", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "h3. Fail Case / Test Case\r\n\r\n* Create an app with this app.js:\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'green'\r\n});\r\n\r\nvar box = Ti.UI.createView({\r\n\tbackgroundColor : 'red',\r\n\theight : '150dp',\r\n\twidth : '100dp',\r\n\ttop: '50dp'\r\n});\r\n\r\nbox.addEventListener('click', function() {\r\n\tvar matrix = Ti.UI.create2DMatrix().scale(1.5, 1.5);\r\n\tvar a = Ti.UI.createAnimation({\r\n\t\ttransform : matrix,\r\n\t\tduration : 500,\r\n\t\tautoreverse : true,\r\n\t\trepeat : 2\r\n\t});\r\n\tbox.animate(a);\r\n});\r\nwin.add(box);\r\n\r\nvar box2 = Ti.UI.createView({\r\n\tbackgroundColor: \"blue\",\r\n\ttop: \"285dp\",\r\n\theight: \"100dp\",\r\n\twidth: \"100dp\"\r\n});\r\n\r\nbox2.addEventListener(\"click\", function() {\r\n\tvar matrix = Ti.UI.create2DMatrix().rotate(97);\r\n\tbox2.animate({transform: matrix, duration: 500, autoreverse: true, repeat: 2});\r\n});\r\nwin.add(box2);\r\n\r\nwin.open();\r\n{code}\r\n\r\n* Run it.\r\n\r\n* Tap the red box. It should grow and shrink twice. Tap it again: in the fail case, it will fail to do what it's supposed to (it gets stuck). In the fixed branch, it should do just like when you tapped it the first time.\r\n\r\n* Tap the green box. It should rotate forward and back twice. Tap it again: in the fail case, it will fail to do what it's supposed to (it gets stuck). In the fixed branch, it should do just like when you tapped it the first time.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-06-14T06:00:37.000+0000", "updated": "2012-06-14T06:00:37.000+0000" }, { "id": "198443", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Pull request ready:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/2392", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-06-14T06:01:28.000+0000", "updated": "2012-06-14T06:01:28.000+0000" }, { "id": "198985", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.1.0.201206172244\r\nTi Mobile SDK2.1.0.v20120618134156 hash r00905cd0\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.1, Nexus S OS 4.0.4\r\n\r\nThe expected behavior is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-18T15:11:37.000+0000", "updated": "2012-06-18T15:11:37.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }