{ "id": "86342", "key": "TIMOB-7618", "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": { "id": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2020-01-09T19:50:04.000+0000", "created": "2012-02-10T14:58:44.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity", "reprod" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "15146", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "84266", "key": "TIMOB-6873", "fields": { "summary": "Android: Inconsistent Focus and Blur events with Textfield in TableViewRow", "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": "16584", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "88966", "key": "TIMOB-8332", "fields": { "summary": "Android: tableView textField focus is lost while typing", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "updated": "2020-01-09T19:50:04.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": "In the following code, if you select a textfield, and rotate the phone to landscape, the textfield loses focus, and a blur event is fired.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tsoftInputMode : (Titanium.UI.Android) ? Ti.UI.Android.SOFT_INPUT_ADJUST_PAN : '',\r\n\twindowSoftInputMode : (Titanium.UI.Android) ? Ti.UI.Android.SOFT_INPUT_ADJUST_PAN : ''\r\n});\r\n\r\nvar tf1 = null;\r\n\r\nfunction addRow() {\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\theight : 80,\r\n\t\t//touchEnabled:false\r\n\t});\r\n\t\r\n\ttf1 = Titanium.UI.createTextField({\r\n\t\tcolor : '#336699',\r\n\t\twidth : 250,\r\n\t\theight : 80,\r\n\t\tfocusable : true,\r\n\t\treturnKeyType : Titanium.UI.RETURNKEY_DONE,\r\n\t\t//autocapitalization : Titanium.UI.TEXT_AUTOCAPITALIZATION_WORDS,\r\n\t\tautocorrect : false,\r\n\t\tsuppressReturn : true,\r\n\r\n\t});\r\n\t\r\n\ttf1.addEventListener('focus', function() {\r\n\t\tTi.API.info('Focus fired');\r\n\t\talert('Focus fired');\r\n\t});\r\n\r\n\ttf1.addEventListener('blur', function() {\r\n\t\tTi.API.info('blur fired');\r\n\t\talert('Blur fired');\r\n\t});\r\n\t\r\n\trow.add(tf1);\r\n\t//row.selectionStyle = Ti.UI.iPhone.TableViewCellSelectionStyle.NONE;\r\n\t//row.className = 'control';\r\n\treturn row;\r\n}\r\n\r\n// create table view data object\r\nvar data = [];\r\n\r\nfor(var x = 0; x < 10; x++) {\r\n\tdata[x] = addRow();\r\n}\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n\tdata : data,\r\n\t//style : Titanium.UI.iPhone.TableViewStyle.GROUPED\r\n});\r\n\r\nwin.add(tableView);\r\n\r\nwin.open();\r\n{code}\r\n\r\nThe expected behavior is for the textfield to remain focused after the orientation.", "attachment": [], "flagged": false, "summary": "Android: Text field loses focus when changing orientation", "creator": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "242901", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\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\n\njithinpv", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T13:12:03.000+0000", "updated": "2013-03-19T13:12:03.000+0000" }, { "id": "422981", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170623141152\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-27T20:24:39.000+0000", "updated": "2017-06-27T20:24:39.000+0000" }, { "id": "432658", "author": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/9515", "updateAuthor": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "created": "2018-01-03T05:45:57.000+0000", "updated": "2018-01-03T05:45:57.000+0000" }, { "id": "453591", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. \r\n\r\nIf community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-09T19:50:04.000+0000", "updated": "2020-01-09T19:50:04.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }