{ "id": "142871", "key": "TIMOB-18392", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-03-05T21:23:52.000+0000", "created": "2015-01-15T16:53:25.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "animation", "imageView", "images", "stop" ], "versions": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" }, { "id": "16676", "description": "Release 3.4.1", "name": "Release 3.4.1", "archived": false, "released": true, "releaseDate": "2014-11-14" }, { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T22:21: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": "When using the ImageView with an *array* of images using the *images* property and *repeatCount* set to a non-zero value - the event *stop does not fire*.\r\n\r\nThe event *start* *does* fire upon starting, however the *stop* event does *not*.\r\n\r\n{code:title=View|xml}\r\n\r\n{code}\r\n\r\n{code:title=Controller|JavaScript}\r\nvar handler = function (e) {\r\n var currentdate = new Date(); \r\n var datetime = + currentdate.getHours() + \":\" \r\n + currentdate.getMinutes() + \":\" \r\n + currentdate.getSeconds();\r\n\r\n Ti.API.info(e.type + ': ' + datetime);\r\n};\r\n$.img.addEventListener('start', handler);\r\n$.img.addEventListener('stop', handler);\r\n$.img.setImages([\r\n \"/images/red/red1.png\",\r\n \"/images/red/red2.png\",\r\n \"/images/red/red3.png\",\r\n \"/images/red/red4.png\",\r\n]);\r\n$.img.start();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: ImageView with ImageArray, does not fire 'stop' event after repeatCount value has been reached", "creator": { "name": "core13", "key": "core13", "displayName": "Malcolm Hollingsworth", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "core13", "key": "core13", "displayName": "Malcolm Hollingsworth", "active": true, "timeZone": "Europe/London" }, "environment": "* OSX\r\n* Titanium Studio\r\n* All Ti SDKs from 3.3 - no tests prior\r\n* Multiple Android SDKs\r\n* GenyMotion and physical devices, each with multiple versions installed", "closedSprints": [ { "id": 356, "state": "closed", "name": "2015 Sprint 05 SDK", "startDate": "2015-02-28T15:50:08.527Z", "endDate": "2015-03-14T00:00:00.000Z", "completeDate": "2015-03-14T13:54:50.695Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "339378", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Problem can be reproduced on SDK 3.5.0.GA\r\n\r\nHere is the test case:\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'White'\r\n});\r\n\r\nvar imageView = Ti.UI.createImageView({\r\n\tid:\"img\",\r\n backgroundColor:\"purple\",\r\n duration:\"2000\",\r\n height:\"50\",\r\n repeatCount:\"10\",\r\n width:\"50\",\r\n images:[\r\n \t\"/images/Test/1.png\",\r\n \t\"/images/Test/2.png\",\r\n \t\"/images/Test/3.png\",\r\n \t\"/images/Test/4.png\"\r\n ]\r\n});\r\nimageView.addEventListener('start', function(e) {\r\n\talert(\"start animation\");\r\n});\r\nimageView.addEventListener('stop', function(e) {\r\n\talert(\"stop animation\");\r\n});\r\n\r\nimageView.start();\r\n\r\nwin.add(imageView);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-01-16T03:14:50.000+0000", "updated": "2015-01-16T03:14:50.000+0000" }, { "id": "344885", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/6683", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-03T00:37:17.000+0000", "updated": "2015-03-03T00:37:17.000+0000" }, { "id": "413319", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T22:21:03.000+0000", "updated": "2017-03-16T22:21:03.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }