{ "id": "134111", "key": "TIMOB-17550", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-29T17:52:10.000+0000", "created": "2014-08-04T15:17:41.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "3.3.0.GA", "TCSupport", "android", "getSection", "ios", "listSections", "listView", "listiSection", "module_listview", "qe-testadded", "regression", "sections" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-10-13T20:52:30.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": "h4. Problem Description\r\nI see, that on iOS listView.getSections(0) and listView.sections[0] return [object TiUIListSection] while on Android listView.getSections(0) return nothing and listView.sections[0] returns undefined on Titanium 3.3.0GA.\r\nOn Titanium 3.2.3GA this code work fine on both platform, iOS and Android, but now it works only on iOS.\r\n\r\n \r\nh4. Steps to reproduce\r\n- Create a Classic Titanium project \r\n- Paste the testcase into app.js\r\n- Run this with testing environment\r\n- Check the logs in Ti Studio \r\n\r\n\r\nh4. Testcase\r\n{code}var data = {\r\n\tproperties : {\r\n\t\ttitle : \"Sample\"\r\n\t}\r\n};\r\nvar listView = Titanium.UI.createListView({});\r\nvar listSections = Titanium.UI.createListSection({});\r\nlistSections.setItems([data]);\r\nlistView.setSections([listSections]);\r\nTi.API.info(listView.sections[0]);//undefined\r\nTi.API.info(listView.sections[0].items);//ERROR\r\nTi.API.info(listView.sections[0].items.length); //ERROR{code}\r\n\r\nh4. Actual Results\r\nOn Android listView.getSections(0) return nothing and listView.sections[0] returns undefined on Titanium SDK 3.3.0GA.\r\n", "attachment": [], "flagged": false, "summary": "Android: ListView methods getSections() and properties sections return nothing/undefined", "creator": { "name": "Libera", "key": "libera", "displayName": "Libera", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "Libera", "key": "libera", "displayName": "Libera", "active": true, "timeZone": "Europe/Rome" }, "environment": " Titanium SDK: 3.3.0.GA and 3.2.3.GA\r\n Titanium CLI: 3.3.0\r\n OS X Version: 10.9.3\r\n IOS Simulator: 7.1\r\n Android API Level: 17 and 19\r\n", "comment": { "comments": [ { "id": "320778", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces in\r\nTitanium SDK version 3.4.0 master, 3.3.0.GA\r\n\r\nBut works fine in\r\nTitanium SDK version 3.2.3.GA\r\n\r\nTitanium Studio, build: 3.3.0.201407100905\r\nTitanium Command-Line Interface\r\nCLI version 3.3.0, \r\nAndroid device : Motorola Moto G, Android version : 4.4.4\r\n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-28T11:46:30.000+0000", "updated": "2014-08-28T11:46:30.000+0000" }, { "id": "320790", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hieu, can you please take a look?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-28T14:45:49.000+0000", "updated": "2014-08-28T14:45:49.000+0000" }, { "id": "320894", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-28T21:42:21.000+0000", "updated": "2014-08-28T21:42:21.000+0000" }, { "id": "321130", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nNow,\r\nlistView.sections[0] returns ----- [object ListSection]\r\nlistView.sections[0].items returns----- [object Object]\r\nlistView.sections[0].items.length returns ----- 1\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 3.4.0.201408282203\r\nTi SDK : 3.4.0.v20140829104912\r\nMac OSX : 10.9.4\r\nAlloy : 1.5.0-dev\r\nCLI - 3.4.0-dev\r\nCode Processor: 1.1.1\r\nAndroid 4.4.4 -Nexus 5 \r\n\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-29T23:45:19.000+0000", "updated": "2014-08-29T23:45:19.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }