{ "id": "118238", "key": "TIMOB-14846", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-04-21T23:01:28.000+0000", "created": "2013-08-10T08:37:11.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "alloy", "listview", "parity" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-30T21:19:33.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": "*Problem*\r\nIn a tabbed application on Android, the ListView sectionCount property is 0 before the tab containing the ListView is in view. This bug bit me when I initialized the ListView upon opening the TabGroup, and later tried to update it prior to the user actually viewing the tab. Interesting to note that the number of items in the ListView is correct - but sectionCount is wrong. It works on iOS.\r\n\r\n*index.xml*\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n*index.js*\r\n{code:javascript}\r\nfunction doClick() {\r\n\talert('section count should be 1, actual value is: ' + $.lv.sectionCount + '. Note however that the number of items is correct: ' + $.lv.sections[0].items.length);\r\n}\r\n$.index.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: ListView sectionCount bug", "creator": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": "SDK 3.1.1.GA, 3.1.2RC2, tested on Android 2.3.6 device, works fine on iOS simulator. Alloy 1.2.0-alpha4 from npm", "closedSprints": [ { "id": 371, "state": "closed", "name": "2015 Sprint 08 SDK", "startDate": "2015-04-11T00:00:49.626Z", "endDate": "2015-04-24T12:00:00.000Z", "completeDate": "2015-04-28T15:02:06.073Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "266114", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on Samsung Galaxy S2 Android 2.3.6 with Ti SDK 3.1.1 GA.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-12T23:33:25.000+0000", "updated": "2013-08-12T23:33:25.000+0000" }, { "id": "343120", "author": { "name": "ybrown", "key": "ybrown", "displayName": "Yishai Brown", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "I encountered the same bug in classic project SDK 3.3.0.GA. ", "updateAuthor": { "name": "ybrown", "key": "ybrown", "displayName": "Yishai Brown", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2015-02-12T20:44:36.000+0000", "updated": "2015-02-12T20:44:36.000+0000" }, { "id": "350324", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can't reproduce this on master. Works fine for me", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-21T23:01:01.000+0000", "updated": "2015-04-21T23:01:01.000+0000" }, { "id": "416388", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce the issue using the following environment; \r\nPixel (7.1) \r\nMacOS 10.11.6 (15G31) \r\nStudio 4.8.1.201612050850 \r\nTi SDK 6.0.3 GA \r\nAppc NPM 4.2.8 \r\nAppc CLI 6.1.0 \r\nTi CLI 5.0.11 \r\nAlloy 1.9.5 \r\nArrow 1.10.1 \r\nXcode 8.2 (8C38) \r\nNode v4.6.0 \r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-30T21:19:33.000+0000", "updated": "2017-03-30T21:19:33.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }