{ "id": "63408", "key": "TIMOB-2776", "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": "11240", "name": "Release 1.6.0 M07", "archived": true, "released": true, "releaseDate": "2011-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:00:03.000+0000", "created": "2011-04-15T03:29:16.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "enterprise", "release-1.6.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T02:00:03.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": "{html}

See log.

\n
\nvar win = Ti.UI.createWindow({\n    navBarHidden: true,\n    exitOnClose: true,\n    backgroundColor: '#fff'\n});\n\nvar view = Ti.UI.createView({\n    width: 50,\n    height: 50,\n    left: 0,\n    top: 0,\n    backgroundColor:'#f00'\n});\n\nvar animateBtn = Ti.UI.createButton({\n    left: 10,\n    right: 10,\n    height: 50,\n    title: 'Animate'\n});\n\nanimateBtn.addEventListener('click', function(e) {\n    view.animate({\n        top: Ti.Platform.displayCaps.platformHeight - view.height,\n        left: Ti.Platform.displayCaps.platformWidth - view.width,\n        duration: 1000\n    },\n    function(e) {\n        Ti.API.info('This is called multiple times.');\n    });\n});\n\nwin.add(animateBtn);\nwin.add(view);\nwin.open();\n
{html}", "attachment": [], "flagged": false, "summary": "Android: Animation callback is called multiple times.", "creator": { "name": "fspencer", "key": "fspencer", "displayName": "Fred Spencer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fspencer", "key": "fspencer", "displayName": "Fred Spencer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129386", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [aa8eb0af3564cca62e04fd8e561a019a57bf6c11])\ndon't allow clearAnimation to cause our animation listener to be\nre-entrant [#2776 state:fixed-in-qa milestone:\"Release 1.6.0\nM04\"]
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/aa8eb0af3564...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:29:16.000+0000", "updated": "2011-04-15T03:29:16.000+0000" }, { "id": "129387", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

[INFO] Titanium SDK version: 1.6.0 (01/10/11\n08:25 3452f06), I only see the fix on 2.2 (droid 1 -2.2.1 and sim\n2.2) while on 2.1 sim and 1.6 device, I see:

\n

I/TiAPI ( 4931): (kroll$4) [3458,20554] This is called multiple\ntimes.
\nI/TiAPI ( 4931): (kroll$4) [4,20558] This is called multiple\ntimes.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:29:17.000+0000", "updated": "2011-04-15T03:29:17.000+0000" }, { "id": "129388", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Moving to M07 so it can get worked.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:29:17.000+0000", "updated": "2011-04-15T03:29:17.000+0000" }, { "id": "129389", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [133d37e7f4d02329bb4a91ca71b90225210430c1])\nonly fire animation complete when the completion comes from the\nparent AnimationSet [#2776 state:fixed-in-qa]
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/133d37e7f4d0...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:29:17.000+0000", "updated": "2011-04-15T03:29:17.000+0000" }, { "id": "129390", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

verified emulator 2.2 with test case from Fred. animate callback\nis invoked only once.

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:29:18.000+0000", "updated": "2011-04-15T03:29:18.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }