{ "id": "63754", "key": "TIMOB-3122", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-08-03T14:44:04.000+0000", "created": "2011-04-15T03:37:29.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "core" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-08-03T14:44:04.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "If you {{start()}} an animation created with an imageView, it will\r\nhonor the repeatCount setting the first time. However, if you call\r\n{{start()}} again, the animation will repeat indefinitely. Tested on\r\nall versions of supported iOS.\r\nCode to demonstrate:\r\n{code:javascript}\r\nvar win1 = Titanium.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar image_list = [\"default_app_logo.png\", \"apple_logo.jpg\"];\r\n\r\nvar animation = Ti.UI.createImageView({\r\n images: image_list,\r\n repeatCount: 1,\r\n duration: 1000\r\n});\r\n\r\nwin1.addEventListener(\"singletap\", function(e) {\r\n Ti.API.log(\"info\", \"Starting because of single tap.\");\r\n Ti.API.log(\"info\", \"repeatCount is: \" + animation.repeatCount);\r\n animation.start();\r\n});\r\n\r\nanimation.addEventListener(\"stop\", function(e) {\r\n Ti.API.log(\"info\", \"animation shutting down properly\");\r\n});\r\n\r\nwin1.add(animation);\r\nwin1.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: ImageView animation ignores repeatCount upon second call to start()", "creator": { "name": "jbwiv", "key": "jbwiv", "displayName": "jbwiv", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jbwiv", "key": "jbwiv", "displayName": "jbwiv", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "178406", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Tested on 1.8.0.1, still happening. \r\n\r\nRelated to http://developer.appcelerator.com/question/130338/imageview-repeatcount-ignored-on-second-call\r\n\r\nBest,\r\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-01-06T14:43:19.000+0000", "updated": "2012-01-06T14:43:19.000+0000" }, { "id": "178407", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\r\nhappening in other community comments, as:\r\n\r\nhttp://developer.appcelerator.com/question/4831/imageview-repeatcount-bug\r\n\r\nhttp://developer.appcelerator.com/question/110991/imageview-animation-repeats-endlessly\r\n\r\nBest,\r\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-01-06T14:45:59.000+0000", "updated": "2012-01-06T14:45:59.000+0000" }, { "id": "217097", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested on the iOS simulator using TiSDK 2.2.0v20120830102513, issue still valid. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-30T17:00:40.000+0000", "updated": "2012-08-30T17:00:40.000+0000" }, { "id": "297678", "author": { "name": "ptquang86", "key": "ptquang86", "displayName": "Quang Pham", "active": true, "timeZone": "Asia/Jakarta" }, "body": "this bug still happend", "updateAuthor": { "name": "ptquang86", "key": "ptquang86", "displayName": "Quang Pham", "active": true, "timeZone": "Asia/Jakarta" }, "created": "2014-03-18T07:00:47.000+0000", "updated": "2014-03-18T07:00:47.000+0000" }, { "id": "318441", "author": { "name": "william.price@homes.com", "key": "william.price@homes.com", "displayName": "W. Blaine Price", "active": true, "timeZone": "America/Havana" }, "body": "Replicated in iOS simulator using 3.2.3 SDK", "updateAuthor": { "name": "william.price@homes.com", "key": "william.price@homes.com", "displayName": "W. Blaine Price", "active": true, "timeZone": "America/Havana" }, "created": "2014-08-13T14:29:48.000+0000", "updated": "2014-08-13T14:29:48.000+0000" }, { "id": "383744", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Ok, so I just tested the issue using the provided code on 5.2.2.GA and 5.4.0 master. When clicking into the window, the animation starts properly, trying to call it again afterwards, it still works. Please test the above mentioned SDK's and provide feedback. Thank you!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-24T22:58:33.000+0000", "updated": "2016-04-24T22:58:33.000+0000" }, { "id": "391522", "author": { "name": "giriakash123", "key": "giriakash123", "displayName": "Akash Giri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tried on Android 6, Nexus 5 on 5.2.2.GA. The problem I am getting is, if I set the repeatCount to 1, then the animation is not starting at all even after using image.start() (image is the imageView object). Please confirm this behavior. Thanks! ", "updateAuthor": { "name": "giriakash123", "key": "giriakash123", "displayName": "Akash Giri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-26T17:12:56.000+0000", "updated": "2016-07-26T17:13:44.000+0000" }, { "id": "392301", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~giriakash123] That's supposed to be the correct behavior, because a count = 0 would not even show it. Closing this (iOS) issue for now, if anyone still runs into it using Titanium 5.4.0+, let me know. Thanks!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-03T14:43:58.000+0000", "updated": "2016-08-03T14:43:58.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }