{ "id": "171547", "key": "TIMOB-25979", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-08-24T01:39:43.000+0000", "created": "2018-04-20T16:21:43.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "tableviewrow" ], "versions": [ { "id": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "issuelinks": [], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2018-09-10T10:06:11.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 we populate TableView with TableViewRows and then change their order with updateRow method it will prevent firing events on the TableViewRow with lowest index. This includes click and touchstart events.\r\n\r\nCode to reproduce:\r\n\r\n{code}\r\nvar window = Ti.UI.createWindow();\r\nwindow.open();\r\n\r\n\r\nvar container = Ti.UI.createView({\t\r\n\tbackgroundColor: '#333'\r\n});\r\n\r\n\tvar tableView = Ti.UI.createTableView({\r\n\t\tbackgroundColor: 'white'\r\n\t});\r\n\t\r\n\tvar row1 = Ti.UI.createTableViewRow({\r\n\t\theight: 50,\r\n\t\tbackgroundColor: 'red',\r\n\t\tclassName: 'scheduled'\r\n\t});\r\n\t\r\n\tvar row2 = Ti.UI.createTableViewRow({\r\n\t\theight: 50,\r\n\t\tbackgroundColor: 'green',\r\n\t\tclassName: 'scheduled'\r\n\t});\r\n\t\r\n\t\r\n\tvar row3 = Ti.UI.createTableViewRow({\r\n\t\theight: 50,\r\n\t\tbackgroundColor: 'yellow',\r\n\t\tclassName: 'scheduled'\r\n\t});\r\n\t\r\n\t\r\n\t\r\n\ttableView.appendRow(row1);\r\n\ttableView.appendRow(row2);\r\n\ttableView.appendRow(row3);\r\n\t\r\n\ttableView.updateRow(0, row3); //this row will stop to react on events\r\n\ttableView.updateRow(1, row2);\r\n\ttableView.updateRow(2, row1);\r\n\t\r\n\tcontainer.add(tableView);\r\n\r\n\r\nwindow.add(container);\r\n\t\r\ntableView.addEventListener('click', function() {alert('clickFromTableView');});\r\ncontainer.addEventListener('click', function() {alert('clickFromContainer');});\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Changing index break events on TableViewRow", "creator": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacOS\r\nSDK: 7.1.0\r\nGenymotion Emulator", "closedSprints": [ { "id": 1065, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2018-08-13T17:39:36.846Z", "endDate": "2018-08-27T17:39:00.000Z", "completeDate": "2018-08-29T16:10:57.013Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "438548", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/10124", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2018-06-20T12:32:47.000+0000", "updated": "2018-06-20T12:32:47.000+0000" }, { "id": "439313", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*, Verified fix in SDK Version: {{7.4.0.v20180717131401}}\r\n\r\nIndex no longer breaks on the lowest index when changing the order (Tested with the code in the description).\r\n\r\n*Test Environment*\r\n{code:java}\r\nAPPC Studio: 5.0.0.201712081732\r\nAPPC CLI: 7.0.4\r\nNexus 6p Emulator (8.0)\r\nOperating System Name: Mac OS High Sierra\r\nOperating System Version: 10.13\r\nNode.js Version: 8.9.1\r\nXcode 9.2\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-07-18T19:19:59.000+0000", "updated": "2018-07-18T19:19:59.000+0000" }, { "id": "441434", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* Also verified using SDK Version {{7.5.0.v20180906093938}}", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-09-10T10:05:57.000+0000", "updated": "2018-09-10T10:05:57.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }