{ "id": "93677", "key": "TIMOB-9723", "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": [], "resolution": null, "resolutiondate": null, "created": "2012-06-22T03:42:53.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "qe-and060112" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:26.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "This is not a regression. It exists as far as 1.8.2\r\n\r\nSteps to reproduce:\r\n1) Use the code below:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nwin.backgroundColor='red';\r\n\t\tvar tf = Titanium.UI.createTextField({\r\n\t\t\t\tbackgroundColor: \"#fff\",\r\n\t\t\t\twidth : 250,\r\n\t\t\t\theight : 80,\r\n\t\t\t\tfocusable : true,\r\n\t\t\t});\r\nwin.add(tf);\r\n\t\t\ttf.addEventListener('focus', function() {\r\n\t\t\t\talert('Focus fired');\r\n\t\t\t});\r\n\t\tTi.Gesture.addEventListener(\"orientationchange\", function() {\r\n\t\t\ttf.blur();\r\n\t\t\talert('blur fired');\r\n\t\t}); \r\nwin.open();\t\r\n{code}\r\n2) Run the app\r\n3) Click 'ok' on the focus alert and rotate device to a new orientation.\r\n\r\nExpected result:\r\n2) After step 2,app should be running and an alert 'Focus fired' should be displayed.\r\n3) Alert 'Blur fired' should be displayed.\r\n\r\nActual result:\r\n2) After step 2,app is running and an alert 'Focus fired'is displayed.\r\n3) 2 alerts 'Blur fired' and 'Focus fired' are displayed.\r\n\r\nFocus event should not get fired.It is not called in orientationchange eventlistener.", "attachment": [], "flagged": false, "summary": "Android: Textfield:Focus event is getting fired with blur event call on orientation change.", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Titanium SDK: 2.1.0.v20120621184154\r\nTested with Titanium  Studio: 2.1.0.201206211609\r\nDevice - Android 2.2.2 LG-P970,Android 4.0.2 samsung galaxy nexus,Android 3.2 Samung GALAXY Tab 620\r\nMachine OS - MAC 10.7.3", "comment": { "comments": [ { "id": "240500", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces with\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\nDevice: Samsung galaxy s duos Android version: 4.0.4", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-04T06:58:10.000+0000", "updated": "2013-03-04T06:58:10.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }