{ "id": "113176", "key": "TIMOB-13723", "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": "15498", "description": "2013 Sprint 12 API", "name": "2013 Sprint 12 API", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15110", "description": "2013 Sprint 12", "name": "2013 Sprint 12", "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" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-05T00:13:47.000+0000", "created": "2013-04-21T16:36:15.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_tableview", "qe-closed-3.1.2", "qe-testadded", "regression" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-06-19T12:44:01.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": "*Actual result*\r\nThe TableView 'longclick' event is fired twice.\r\n\r\n*Expected result*\r\nThe event should only fire once.\r\n\r\n*Steps to reproduce*\r\n1. Run the test case\r\n2. Search for LONGCLICK in DDMS\r\n3. Hold finger down on one of the rows\r\n4. Verify that it's called twice\r\n\r\n*Test case*\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n\r\nvar data = [{\r\n\ttitle : 'Apples'\r\n}, {\r\n\ttitle : 'Bananas'\r\n}, {\r\n\ttitle : 'Carrots'\r\n}, {\r\n\ttitle : 'Potatoes'\r\n}];\r\nvar table = Ti.UI.createTableView({\r\n\tdata : data\r\n});\r\n\r\ntable.addEventListener('longclick', function(e) {\r\n\tTi.API.info('LONGCLICK');\r\n});\r\n\r\nwin.add(table);\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: TableView longclick event fired twice.", "creator": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": "Titanium Studio 3.1.0\r\nTi SDK 3.1", "comment": { "comments": [ { "id": "248700", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Y,\r\n\r\nPlease provide a complete reproducible test case that we can drop into an app.js and run.\r\n\r\nAlso state your Ti SDK version.\r\n\r\nThanks.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-22T23:45:47.000+0000", "updated": "2013-04-22T23:45:47.000+0000" }, { "id": "249000", "author": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "It's simple as it sounds... here is a sample:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\nvar data = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'}];\r\nvar table = Ti.UI.createTableView({\r\n data: data\r\n});\r\n\r\ntable.addEventListener('longclick', function(e) {\r\n Ti.API.info('LONGCLICK');\r\n});\r\n\r\nwin.add(table);\r\n\r\nwin.open();\r\n{code}\r\n\r\nThe message *LONGCLICK* triggered twice instead of once.", "updateAuthor": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-04-25T06:49:03.000+0000", "updated": "2013-05-20T05:01:39.000+0000" }, { "id": "249001", "author": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Ti SDK 3.1 - Android", "updateAuthor": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-04-25T06:49:36.000+0000", "updated": "2013-04-25T06:49:36.000+0000" }, { "id": "249509", "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.2 CI, 3.1 GA. Works as expected (fires once) on 3.0 GA and below.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-30T00:05:47.000+0000", "updated": "2013-04-30T00:05:47.000+0000" }, { "id": "250582", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Do not fire longClick if it is already fired on rowProxy\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4233\r\n", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-05-07T17:14:51.000+0000", "updated": "2013-05-07T17:14:51.000+0000" }, { "id": "254529", "author": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "body": "Is there a fix around this issue?", "updateAuthor": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2013-05-29T12:12:28.000+0000", "updated": "2013-05-29T12:12:28.000+0000" }, { "id": "254577", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Thomas,\n\nThe fix is included in the pull request linked above your comment, but it has yet to be merged into the master branch.\n\nIf you really need the fix you can always build the SDK yourself, but I can't imagine it will be long before it will be available in the master CI build.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-29T17:13:59.000+0000", "updated": "2013-05-29T17:13:59.000+0000" }, { "id": "263055", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "backport PR: https://github.com/appcelerator/titanium_mobile/pull/4486", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-24T21:52:57.000+0000", "updated": "2013-07-24T21:52:57.000+0000" }, { "id": "265243", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested above code and verified correct behavior with:\nAppcelerator Studio, build: 3.1.2.201308021524\nTitanium SDK, build: 3.1.2.v20130806104555\nAlloy 1.2.0-alpha6\nCLI: 3.1.2-alpha\nDevices:\nNexus7(2) Android version 4.3\nGalaxyS3 Android version 4.0.4", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-06T23:37:36.000+0000", "updated": "2013-08-06T23:37:36.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }