{ "id": "103200", "key": "TIMOB-11409", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14166", "description": "2012 Sprint 21 Core", "name": "2012 Sprint 21 Core", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-10-15T19:42:35.000+0000", "created": "2012-10-12T10:10:06.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "accessibility_module", "core", "qe-ios100112", "qe-nfc", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-12-04T19:45:14.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "The device does not read aloud for system events for Ti.App.iOS.EVENT_ACCESSIBILITY_LAYOUT_CHANGED and Ti.App.iOS.EVENT_ACCESSIBILITY_SCREEN_CHANGED\r\nAlso warning is shown in console\r\n\r\nSteps to Reproduce:\r\n1. Open the application with code below\r\n2. Click on Remove button. (Label gets hidden)\r\n3. Click on Add button. (A view is created and shown)\r\n\r\nActual: Device does not speak anything. A warning is shown in console for both the buttons. Refer the attachment for logs\r\n\r\nExpected: Device should speak for respective system event\r\n\r\n{code}\r\nvar win=Ti.UI.createWindow({backgroundColor:'white'});\r\nvar btn1 = Ti.UI.createButton({\r\n\ttitle: 'Add',\r\n\ttop: 20,\r\n\tright:10,\r\n\twidth:100,\r\n\theight: 100,\r\n\taccessibilityHint: 'This will add view on screen'\r\n\t\r\n});\r\nvar btn2 = Ti.UI.createButton({\r\n\ttitle: 'Remove',\r\n\ttop: 20,\r\n\tleft:10,\r\n\twidth:100,\r\n\theight: 100,\r\n\taccessibilityHint: 'This will remove the label'\r\n});\r\n\r\nvar lbl = Ti.UI.createLabel({\r\n\ttext: 'This will be removed',\r\n\ttop: 150\r\n});\r\nbtn1.addEventListener('click', function(e){\r\n\tvar view= Ti.UI.createView({\r\n\t\ttop: 200,\r\n\t\tbottom: 0,\r\n\t\tbackgroundColor: \"red\",\r\n\t\tleft: 0,\r\n\t\tright : 50\r\n\t});\r\n\r\n\tview.addEventListener('postlayout',function(e){\r\n\t\tTi.App.fireSystemEvent(Ti.App.iOS.EVENT_ACCESSIBILITY_SCREEN_CHANGED);\r\n });\r\n\t\twin.add(view);\r\n});\r\n\r\nwin.add(lbl);\r\nbtn2.addEventListener('click', function(e){\r\n\tlbl.hide();\r\n\tTi.App.fireSystemEvent(Ti.App.iOS.EVENT_ACCESSIBILITY_LAYOUT_CHANGED);\r\n});\r\n\r\nwin.add(btn2);\r\nwin.add(btn1);\r\nwin.open();\r\n\r\n{code}", "attachment": [ { "id": "32598", "filename": "log.txt", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-13T11:55:17.000+0000", "size": 1861, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: Accessibility: LayoutChanged and ScreenChanged accessibility system events not working and show warning in console", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 3.0.0.201210101947\r\nTitanium SDK: 3.0.0.v20121011174610\r\nDevice: iPad3 (6.0)\r\nXCode: 4.5.1", "comment": { "comments": [ { "id": "223267", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Not seeing any issues with the events. No warnings in console. Please provide details/sample code.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-12T17:21:44.000+0000", "updated": "2012-10-12T17:21:44.000+0000" }, { "id": "223386", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Description updated with the code being used to test. Also the logs are attached.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-13T11:56:15.000+0000", "updated": "2012-10-13T11:56:15.000+0000" }, { "id": "223422", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Correct test case\n{code}\n var win=Ti.UI.createWindow({backgroundColor:'white', layout:'vertical'});\n var view= Ti.UI.createView({\n top: 0,\n bottom: 0,\n backgroundColor: \"red\",\n width: 50,\n height : 50,\n accessibilityLabel: 'Red view'\n });\n\nvar btn1 = Ti.UI.createButton({\n title: 'Add',\n width:100,\n height: 100,\n accessibilityHint: 'This will add view on screen'\n\n});\nvar btn2 = Ti.UI.createButton({\n title: 'Update',\n width:100,\n height: 100,\n accessibilityHint: 'This will update the button title'\n});\n\nbtn1.addEventListener('click', function(e){\n\tview.show();\n Ti.App.fireSystemEvent(Ti.App.iOS.EVENT_ACCESSIBILITY_SCREEN_CHANGED);\n});\n\nbtn2.addEventListener('click', function(e){\n\tbtn2.title = \"Updated\";\n btn2.accessibilityHint = \"This button has been already pressed.\";\n Ti.App.fireSystemEvent(Ti.App.iOS.EVENT_ACCESSIBILITY_LAYOUT_CHANGED);\n});\n\nwin.add(view);\nwin.add(btn2);\nwin.add(btn1);\nview.hide();\n\nwin.open();\n{code}", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-13T21:51:11.000+0000", "updated": "2012-10-13T21:51:11.000+0000" }, { "id": "223428", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR to move EVENT_ACCESSIBILITY_LAYOUT_CHANGED/EVENT_ACCESSIBILITY_SCREEN_CHANGED to Ti.App.iOS module is submitted https://github.com/appcelerator/titanium_mobile/pull/3216", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-13T22:15:27.000+0000", "updated": "2012-10-13T22:15:27.000+0000" }, { "id": "223496", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3_0_X PR https://github.com/appcelerator/titanium_mobile/pull/3228", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-14T20:24:15.000+0000", "updated": "2012-10-14T20:24:15.000+0000" }, { "id": "229910", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed.\nTested and verified with:\nTitanium Studio, build: 3.0.0.201211301903\nTitanium SDK, build: 3.0.0.v20121130200208\nDevice:\niPhone5 iOS 6.0", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T19:44:36.000+0000", "updated": "2012-12-04T19:44:36.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }