{ "id": "118689", "key": "TIMOB-14902", "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": "15597", "description": "2013 Sprint 17", "name": "2013 Sprint 17", "archived": true, "released": true, "releaseDate": "2013-08-23" }, { "id": "15599", "description": "2013 Sprint 17 API", "name": "2013 Sprint 17 API", "archived": true, "released": true, "releaseDate": "2013-08-23" }, { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-08-17T01:34:57.000+0000", "created": "2013-08-16T21:54:40.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "3.1.2", "android", "listview", "qe-testadded", "regression" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [ { "id": "31170", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "118651", "key": "TIMOB-14901", "fields": { "summary": "ListView: A button within a ListView does not trigger an 'itemclick' event when clicked", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "31168", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "114608", "key": "TIMOB-13914", "fields": { "summary": "Android: 'longpress' event is not working in ListView", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:35.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": "Just try to click the ListView in the label area. In 3.1.2.GA it rarely works, on 3.1.1.GA clicks reliably. This bug seems to be dependent upon the item template - I have listviews in my app that are totally unclickable. Sorry to vent about this - Android has several ListView issues, I can work around most of them, but this one is a showstopper. I can't use 3.1.2 until fixed.\r\n\r\nindex.xml:\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\r\n\r\n{code}\r\n\r\nindex.js:\r\n{code}\r\nfunction lvClicked() {\r\n\talert('clicked');\r\n}\r\nvar data = [];\r\nfor (var i=0; i < 10; i++) {\r\n\tdata.push({testMsg: {text: 'try to click on the label area - it will work with 3.1.1 but not on 3.1.2 :('}});\r\n}\r\n\r\n$.ls.setItems(data);\r\n$.index.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: ListView itemclick event broken in 3.1.2.GA", "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.2.GA, Android 4.1.2. This is a regression - code works on 3.1.1.GA", "comment": { "comments": [ { "id": "266961", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-08-16T21:56:39.000+0000", "updated": "2013-08-16T21:56:39.000+0000" }, { "id": "266982", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Linking to a TIMOB ticket. TIMOB-14901", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-16T22:32:30.000+0000", "updated": "2013-08-16T22:32:30.000+0000" }, { "id": "266985", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test case for classic Titanium project:\n{code}\nvar temp1 = {\n childTemplates: [ // Add view subcomponents to the ListItem\n {\n // Display a Label\n type: 'Ti.UI.Label',\n bindId: 'testMsg'\n }\n ]\n};\n\nvar listView = Titanium.UI.createListView({\n\ttemplates: {'temp1': temp1},\n\tdefaultItemTemplate: 'temp1'\n});\n\n// Simplest list data items that can be displayed in a list view\nvar data = [];\nfor (var i=0; i<10; i++) {\n\tdata.push({testMsg: {text: 'try to click on the label area - it will work with 3.1.1 but not on 3.1.2 :('}});\n}\n\n// Add the list data items to a section\nvar ls = Titanium.UI.createListSection();\nls.setItems(data);\n \n// Add the list section to a list view\nlistView.sections = [ls];\n\nlistView.addEventListener('itemclick', function(e){\n alert(\n \"ItemId: \" + e.itemId + \"\\n\" +\n \"BindId: \" + e.bindId + \"\\n\" +\n \"Section Index: \" + e.sectionIndex + \", Item Index: \" + e.itemIndex\n ); \n});\n\nvar win = Ti.UI.createWindow({\n\tbackgroundColor: \"white\"\n});\nwin.add(listView);\nwin.open();\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-16T22:36:08.000+0000", "updated": "2013-08-16T22:36:08.000+0000" }, { "id": "267002", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This regression is caused by [PR#4241|https://github.com/appcelerator/titanium_mobile/pull/4241].", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-16T23:36:37.000+0000", "updated": "2013-08-16T23:36:37.000+0000" }, { "id": "267047", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Verified as fixed in my app by https://github.com/appcelerator/titanium_mobile/pull/4580\r\nThanks for the quick fix!", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-08-17T07:49:20.000+0000", "updated": "2013-08-17T07:49:20.000+0000" }, { "id": "267740", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as duplicate of linked ticket.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-22T23:42:58.000+0000", "updated": "2013-08-22T23:42:58.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }