{ "id": "174588", "key": "TIMOB-27694", "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": "20972", "description": "", "name": "Release 8.3.1", "archived": false, "released": true, "releaseDate": "2020-01-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-01-03T17:28:29.000+0000", "created": "2019-12-20T14:24:47.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "engSchedule", "escalation" ], "versions": [ { "id": "20884", "name": "Release 8.2.1", "archived": false, "released": true, "releaseDate": "2019-10-25" }, { "id": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "issuelinks": [ { "id": "58551", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "175321", "key": "TIMOB-28021", "fields": { "summary": "Ti.UI.TextField Test Suite: Titanium.UI.TextField Acceptance TIMOB-27694 Android only", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } }, { "id": "57993", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "174191", "key": "TIMOB-27426", "fields": { "summary": "Android : Focus method not working on Android 7+ when using a bluetooth Keyboard or using a Bluetooth barcode scanner configured as a keyboard.", "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": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2020-07-16T04:58:48.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": "*Issue:* Textfield.focus() method is not working properly on android after updating to 8.3.0. It is getting focused but no keyboard is shown. The keyboard is only showing on the click of the TextField but if I call TextField.focus() then textfield is getting focused without a keyboard.\r\n\r\n*Steps To Reproduce:*\r\n1. Create a classic project\r\n2. Paste this code in app.js file\r\n3. Run it on android device or emulator\r\n4. Click on the \"Focus Test\" Button\r\n\r\n*Note: Works as expected with Ti SDK 8.2.0.GA*\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\ttitle : \"Focus Test\",\r\n\tbackgroundColor : 'red',\r\n\tlayout : \"vertical\"\r\n\r\n});\r\n\r\n// Create a TextField.\r\nvar aTextField = Ti.UI.createTextField({\r\n\theight : 40,\r\n\ttop : 30,\r\n\tleft : 20,\r\n\tright : 20,\r\n\tbackgroundColor : \"gray\",\r\n\thintText : 'This is hint text',\r\n\tsoftKeyboardOnFocus : Ti.UI.Android.SOFT_KEYBOARD_DEFAULT_ON_FOCUS, // Android only\r\n\tkeyboardType : Ti.UI.KEYBOARD_DEFAULT,\r\n\treturnKeyType : Ti.UI.RETURNKEY_DEFAULT,\r\n\tborderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED\r\n});\r\n\r\n// Listen for return events.\r\naTextField.addEventListener('return', function(e) {\r\n\taTextField.blur();\r\n\talert('Input was: ' + aTextField.value);\r\n});\r\n\r\n// Add to the parent view.\r\nwin.add(aTextField);\r\n\r\n// Create a Button.\r\nvar test = Ti.UI.createButton({\r\n\ttitle : 'Focus Test',\r\n\theight : Ti.UI.SIZE,\r\n\twidth : Ti.UI.SIZE,\r\n\ttop : 50,\r\n\r\n});\r\n\r\n// Listen for click events.\r\ntest.addEventListener('click', function() {\r\n\r\n\taTextField.focus();\r\n\t//alert('\\'aButton\\' was clicked!');\r\n});\r\n\r\n// Add to the parent view.\r\nwin.add(test);\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Textfield.focus() method is not working in Ti SDK 8.3.0.GA ", "creator": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Ti SDK 8.3.0.GA, 8.2.1.GA\r\nCLI 7.1.2\r\nAndroid Device: Samsung Galaxy J7 Prime2 v9.0.0, Emulator Google Nexus v8.0.0", "closedSprints": [ { "id": 1175, "state": "closed", "name": "2019 Sprint 26", "startDate": "2019-12-16T06:12:12.044Z", "endDate": "2019-12-21T06:12:00.000Z", "completeDate": "2019-12-22T03:07:15.802Z", "originBoardId": 114 }, { "id": 1176, "state": "closed", "name": "2020 Sprint 1", "startDate": "2020-01-02T21:15:56.301Z", "endDate": "2020-01-17T21:15:00.000Z", "completeDate": "2020-01-21T17:44:29.577Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "453263", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "master/9.0.0: https://github.com/appcelerator/titanium_mobile/pull/11405\r\n8_3_X backport: https://github.com/appcelerator/titanium_mobile/pull/11406\r\n", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-12-20T16:40:57.000+0000", "updated": "2019-12-20T16:40:57.000+0000" }, { "id": "453265", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "I've supplied a very small patch for master (9.0.0 target) and a backport for 8_3_X branch if we wanted to ask them to try a non-GA maintenance build as a fix ({{ti sdk install -b 8_3_X}}) if/once it gets merged and built.\r\n\r\nFor now a simple workaround is to explicitly set the {{editable}} property to true on the textfield.\r\n{code:javascript}\r\n// Create a TextField.\r\nvar aTextField = Ti.UI.createTextField({\r\n editable: true, // this should work around the issue\r\n\theight : 40,\r\n\ttop : 30,\r\n\tleft : 20,\r\n\tright : 20,\r\n\tbackgroundColor : \"gray\",\r\n\thintText : 'This is hint text',\r\n\tsoftKeyboardOnFocus : Ti.UI.Android.SOFT_KEYBOARD_DEFAULT_ON_FOCUS, // Android only\r\n\tkeyboardType : Ti.UI.KEYBOARD_DEFAULT,\r\n\treturnKeyType : Ti.UI.RETURNKEY_DEFAULT,\r\n\tborderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED\r\n});\r\n{code}", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-12-20T16:47:43.000+0000", "updated": "2019-12-20T16:47:43.000+0000" }, { "id": "453427", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 8.3.1.v20191220101805 & 9.0.0.v20200103081513.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-03T17:28:21.000+0000", "updated": "2020-01-03T17:28:21.000+0000" }, { "id": "454438", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Removing from fixVersion 9.0.0 as this shipped in 8.3.1.GA", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-02-26T10:56:23.000+0000", "updated": "2020-02-26T10:56:23.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }