{ "id": "126296", "key": "TIMOB-16449", "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": "15931", "description": "2014 Sprint 05", "name": "2014 Sprint 05", "archived": true, "released": true, "releaseDate": "2014-03-14" }, { "id": "15932", "description": "2014 Sprint 05 API", "name": "2014 Sprint 05 API", "archived": true, "released": true, "releaseDate": "2014-03-14" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-03-11T20:40:02.000+0000", "created": "2014-02-12T00:39:17.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-testadded", "supportTeam" ], "versions": [], "issuelinks": [ { "id": "35506", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "112865", "key": "TIMOB-13558", "fields": { "summary": "Android: Button with a touchstart event can look disabled if you call setEnabled(true)", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "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": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-03-19T00:40:37.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": "h6. Issue description\r\nTo enable and disable the buttons developer use the touchEnabled and enabled properties of the Titanium View's.\r\n\r\nMany of the buttons created this way start off in a disabled state so touchEnabled and enabled are both set to false. Clicking on the button in this state does nothing which is expected. When ready we set touchEnabled and enabled to true to enable touch events on the view and to fire the attached event listeners such as a touchstart event. \r\n\r\nIn the 3.1.3.GA SDK this works perfectly however on the 3.2.0.GA SDK it appears that once those 2 properties are set to false the event listener added to the view stops working. \r\n\r\nh6. Test Case Steps:\r\n# Launch Bug_Testing_TC sample with the 3.1.3.GA on an android device.\r\n# Tap the Pink Rectangle -> Nothing happens, that is expected since the view is disabled.\r\n# Tap on the Blue Square -> Notice an alert pops up indicating that touchEnabled and enabled are set to true now for the pink square.\r\n# Click OK\r\n# Now Tap on the Pink Rectangle Again -> Notice that there is an alert that says PINK VIEW CLICKED!! that is expected since the view is now in an enabled and touchenabled state. Also notice that both of those states are now set to false so the view is again disabled.\r\n# Click OK\r\n# Tap on the Pink Rectangle Again -> Notice nothing happens since it is disabled. That is how we expect it to work.\r\n# Change the TiSDk to 3.2.0.GA\r\n# Launch Bug_Testing on an android device.\r\n# Tap the Pink Rectangle -> Nothing happens, that is expected since the view is disabled.\r\n# Tap on the Blue Square -> Notice an alert pops up indicating that touchEnabled and enabled are set to true now for the pink square.\r\n# Click OK\r\n# Now Tap on the Pink Rectangle Again -> Notice that Nothing happens\r\n# Repeat 10-12, notice that the pink rectangles touchstart event is not firing, it should be firing since touchEnabled and enabled are both set to true.\r\n\r\nh6. Tested on\r\nThis was reproduced on the Samsung Note 10.1 2014 MN: SM-P600 running Android 4.3 and Galaxy Nexus 4.1.1.\r\n\r\nIt could not be reproduced this on a Saumsung Note Phone MN: SGH-I717 running Android 2.3.6.\r\n\r\n", "attachment": [ { "id": "46288", "filename": "Bug_Testing_TC.zip", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-03T16:37:01.000+0000", "size": 3177754, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: When touchEnabled and enabled properties are set to false the event listener added to the view stops working", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.2.0.GA & 3.2.1.GA\r\nAndroid OS 4.1.1 & 4.3", "comment": { "comments": [ { "id": "296499", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/5446", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-10T23:32:23.000+0000", "updated": "2014-03-10T23:32:23.000+0000" }, { "id": "297798", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\nMac OSX 10.9.2\nAppcelerator Studio, build: 3.2.3.201403171239\nTitanium SDK, build: 3.2.3.v20140318131613\nCLI: 3.2.1\nAlloy: 1.3.1\nAndroid Device: Nexus 4 (4.4)\nAndroid Emulator: 2.3.3, 4.3\n\nClicking the blue view followed by the pink view results in the following:\nBlue view throws an alert setting the pink view values to true.\nPink view throws an alert setting the pink view values to false.\nSwitched between the two views a handful of times and seemed to work consistently.\nClosing", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-19T00:40:20.000+0000", "updated": "2014-03-19T00:40:20.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }