{ "id": "176311", "key": "TIMOB-28557", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "sprint": { "id": 1231, "state": "active", "name": "2021 Sprint 21", "startDate": "2021-10-07T16:05:18.981Z", "endDate": "2021-10-21T16:05:00.000Z", "originBoardId": 219 }, "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": "21249", "name": "Release 10.2.0", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-10-20T02:46:44.000+0000", "created": "2021-10-15T18:30:50.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-10-20T02:46:44.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": "- {{ListView.show()}} and {{ListView.visibility}} may not display list items under certain criterias\r\n\r\n*TEST CASE*\r\n{code:js}\r\nconst window = Ti.UI.createWindow();\r\nconst listView = Ti.UI.createListView({\r\n\tvisible: false, // Set visible equal to true and I work\r\n\tsearchView: Ti.UI.createSearchBar() // Remove the searchView and I work\r\n});\r\n// Comment out the event listener and I work, change me to 'click' and still broke though\r\nwindow.addEventListener('open', () => {\r\n\tconst data = []\r\n\tfor (let i = 0; i < 5; i++) {\r\n\t\tconst row = {\r\n\t\t\tproperties: {\r\n\t\t\t\ttitle: `Foo ${i}`,\r\n\t\t\t\tcolor: \"#000000\",\r\n\t\t\t\tbackgroundColor: \"#FFFFFF\",\r\n\t\t\t\theight: 50\r\n\t\t\t}\r\n\t\t}\r\n\t\tconst section = Ti.UI.createListSection({\r\n\t\t\theaderTitle: `Test ${i}`,\r\n\t\t\titems: [ row ]\r\n\t\t});\r\n\t\tdata.push(section);\r\n\t}\r\n\tlistView.sections = data;\r\n // listView.visibility = true;\r\n\tlistView.show();\r\n});\r\nwindow.add(listView)\r\nwindow.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: ListView visibility change may not display items", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "459104", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/13124", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-10-15T19:14:21.000+0000", "updated": "2021-10-15T19:14:21.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }