{ "id": "176118", "key": "TIMOB-28388", "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": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" }, { "id": "21212", "description": "", "name": "Release 9.3.3", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-05-18T18:12:25.000+0000", "created": "2021-03-12T16:03:26.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "TableView", "android", "regression" ], "versions": [ { "id": "21191", "name": "Release 9.3.2", "archived": false, "released": true, "releaseDate": "2021-02-11" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-05-18T18:12:29.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": "h5.Description\r\n\r\nWhen running the code below and clicking any headerview other than Label0 the row will not be made visible. When clicking Label0 the row in that section is made visible\r\n\r\n{code}\r\nfunction formRow(isVisible, rowHeight){\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\twidth : Ti.UI.FILL,\r\n\t\theight : rowHeight,\r\n\t\tbackgroundColor : \"white\"\r\n\t}); \r\n\trow.add(Ti.UI.createLabel({\r\n\t\ttext : \"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\",\r\n\t\tcolor: \"black\",\r\n\t\theight : Ti.UI.SIZE,\r\n\t\tvisible : isVisible,\r\n\t\twidth : Ti.UI.FILL,\r\n\t}));\r\n\r\n\treturn row;\r\n}\r\n\r\nfunction formHeaderView(index){\r\n\tvar headerView = Titanium.UI.createView({\r\n\t\tlayout : \"vertical\",\r\n\t\theight : 55,\r\n\t\twidth : Ti.UI.FILL\r\n\t}); \r\n\r\n\tvar headerContentView = Titanium.UI.createView({\r\n\t\tbackgroundColor : \"white\",\r\n\t\theight : 44,\r\n\t\tsectionIndex : index,\r\n\t\twidth : Ti.UI.FILL,\r\n\t\ttouchEnabled : true\r\n\t}); \r\n\t\r\n\tvar headerLabel = Titanium.UI.createLabel({\r\n\t\ttext : \"Label\" + index,\r\n\t\tleft : 0,\r\n\t\tcolor : \"black\",\r\n\t\ttouchEnabled : false,\r\n\t\theight : Ti.UI.SIZE\r\n\t}); \r\n\t\r\n\theaderView.addEventListener('click', function(e){\r\n\t\tTi.API.info('header view click:::::::::::::::'+JSON.stringify(e));\r\n\t\ttable.updateRow(e.source.sectionIndex, formRow(true,Ti.UI.SIZE));\r\n\t});\r\n\t\r\n\theaderContentView.add(headerLabel);\r\n\theaderView.add(headerContentView);\r\n\treturn headerView;\r\n}\r\n\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow();\r\nvar listSections = [];\r\nfor (var i = 0; i < 5; i++) {\r\n\tvar section = Ti.UI.createTableViewSection({\r\n\t\theaderView : formHeaderView(i)\r\n\t});\r\n\tsection.add(formRow(false, 0));\r\n\tlistSections.push(section);\r\n}\r\n\r\nvar table = Ti.UI.createTableView({\r\n\tdata: listSections\r\n});\r\n\r\nwin.add(table);\r\nwin.open();\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Add the code above to an existing app.js and build to Android\r\n2. Click {{Label0}}\r\n3. Click {{Label1}}\r\n\r\nh5.Actual\r\n\r\nRow is shown when clicking Label0, is not when click Label1\r\n\r\nh5.Expected\r\n\r\nRow should show in both cases", "attachment": [], "flagged": false, "summary": "Android: Calling updateRow does not update rows other than the first row", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "closedSprints": [ { "id": 1219, "state": "closed", "name": "2021 Sprint 5", "startDate": "2021-03-01T19:02:00.000Z", "endDate": "2021-03-12T19:02:00.000Z", "completeDate": "2021-03-15T03:30:49.472Z", "originBoardId": 114 }, { "id": 1220, "state": "closed", "name": "2021 Sprint 6", "startDate": "2021-03-15T03:31:12.088Z", "endDate": "2021-03-27T03:31:00.000Z", "completeDate": "2021-03-26T19:18:15.760Z", "originBoardId": 114 }, { "id": 1224, "state": "closed", "name": "2021 Sprint 10", "startDate": "2021-05-17T16:31:32.484Z", "endDate": "2021-05-28T16:31:00.000Z", "completeDate": "2021-05-28T22:15:02.543Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "458399", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/12558", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-12T18:10:47.000+0000", "updated": "2021-03-12T18:10:47.000+0000" }, { "id": "458420", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-15T22:12:35.000+0000", "updated": "2021-03-15T22:12:35.000+0000" }, { "id": "458431", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master; 10_0_X for 10.0.0 target; and 9_3_X branch.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-03-16T14:05:25.000+0000", "updated": "2021-03-16T14:05:25.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }