{ "id": "170668", "key": "AC-5467", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2018-03-18T21:45:15.000+0000", "created": "2017-12-22T08:34:08.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-03-18T21:45:15.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Whenever we use *Ti.UI.TEXT_ALIGNMENT_CENTER* on TextField in Android, it flickers & switches to default *keyboardType* after pressing device's back-button & sometimes after pressing the Return key also. \r\n\r\nI tried it by using different *inputType* & *keyboardType* combination also, but after pressing device's back-button, it's showing up the default *keyboardType* for a millisecond & then it hides down.\r\n\r\nThis behaviour is further causing irregularities in TextField's *focus()* method. \r\n\r\nI tested it on both 7.0.0.GA & 7.0.1.GA SDK, it behaves same. At present, I can't seem to find any temporary solution if I use *Ti.UI.TEXT_ALIGNMENT_CENTER* alignment.\r\n\r\nHere's the sample code & also a video of a different app but with same issue.\r\n\r\n{code:java}\r\n var win = Ti.UI.createWindow({\r\n\t\tbackgroundColor: 'white',\r\n\t\ttitle : 'Ti Samples'\r\n\t});\r\n\r\n\tvar field = Ti.UI.createTextField({\r\n\t\ttop : 50,\r\n\t\tinputType : [Ti.UI.INPUT_TYPE_CLASS_NUMBER],\r\n\t\twidth : '70%',\r\n\t\tcolor : 'black',\r\n\t\thintText : '1234...',\r\n\t\thintTextColor : '#555555',\r\n\t\ttextAlign : Ti.UI.TEXT_ALIGNMENT_CENTER\r\n\t});\r\n\r\n\twin.add(field);\r\n\r\n\twin.open();\r\n{code}\r\n", "attachment": [ { "id": "63847", "filename": "bug2.mp4", "author": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-22T10:32:06.000+0000", "size": 4699022, "mimeType": "video/mp4" } ], "flagged": false, "summary": "Android : TextField center-alignment causing keyboard flickering by showing different keyboard layout", "creator": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK : 7.0.1.GA\r\nTi SDK : 7.0.0.GA\r\n\r\nTested on following devices:\r\n1- Redmi Note 3 - OS 6.0.1 (issue exists)\r\n2- Moto G4 Play - OS 6.0.1 (issue exists)\r\n3- Redmi Note 4 - OS 7.1.1 (no issue, working fine)\r\n4- Nokia 5 - OS 7.1.1 (no issue, working fine)\r\n5- Nokia 6 - OS 8.0 (no issue, working fine)\r\n6- Moto Z Play - OS 7.1.1 (no issue, working fine)", "comment": { "comments": [ { "id": "432525", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I have tested your sample code on both Android 7.x emulator and device. I wasn't able to reproduce the issue with SDK 7.0.0.GA. I don't see any flickering or keyboard input type change when I press back. I don't have the Redmi Note 3 and Moto G4 Play device. I looked for the emulators, unfortunately, Genymotion does not provide those either. [~jquick], anyone has those devices?", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-12-22T23:22:46.000+0000", "updated": "2017-12-22T23:24:24.000+0000" }, { "id": "432528", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-22T23:44:23.000+0000", "updated": "2017-12-22T23:44:23.000+0000" }, { "id": "432538", "author": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sharif , can you please look at the environment I have specified in this bug. I tested it on 6 different devices of various companies & with different Android version, so I hope you can get the idea that only Android OS 6.0.1 is causing this issue (at least this is what I found out in my testing)? I request you to please test it on Android OS 6.x\r\n\r\nJoshua , I have added a video of this bug for clear information about the issue.\r\n\r\nOn both those 2 devices with OS 6.0.1, even I created & tested a native Android app with an EditText with same center-alignment, but it didn't cause any issue then. So, it's sure Titanium SDK is the issue here.\r\n", "updateAuthor": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-23T06:27:12.000+0000", "updated": "2017-12-23T06:27:12.000+0000" }, { "id": "432540", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~prashant_saini], please test the issue with SDK 6.1.x on your Redmi Note 3 and Moto G4 Play device running OS 6.0.1, And let us know the result. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-12-23T21:17:11.000+0000", "updated": "2017-12-23T21:17:11.000+0000" }, { "id": "432542", "author": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Sharif, I don't have any other SDK than 7.0.0, 7.0.1 & 5.5.1.\r\n\r\nBut I really don't understand why you guys are asking me to test this when I have provided you a video attachment with 6 different devices. Does it not matter to you that it's happening on Ti SDK 7.0.1 & still you want it checked on older SDKs? \r\n\r\nPlease understand that I am not a tester so I do not keep every SDK in my machine. Somehow I managed those 6 devices from my colleagues, but I simply don't have any SDK of 6.x version.", "updateAuthor": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-24T09:21:00.000+0000", "updated": "2017-12-24T09:21:00.000+0000" }, { "id": "432544", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~prashant_saini], First, as I said I don't have the Redmi Note 3 and Moto G4 Play device, If I had, I would have already tested there with SDK 6.x SDK. Now the reason we are asking for you to test with SDK 6.x on the mentioned devices is, we want to identify where the issue originated. This will help us identify the issue and we can move for a fix. You can easily download any previous version of SDK form the studio. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-12-24T21:36:08.000+0000", "updated": "2017-12-24T21:36:08.000+0000" }, { "id": "432548", "author": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello Sharif, I am quite busy to test it on different SDKs, but I guess you missed few points which are:\r\n\r\n- It's happening only on Android 6.x OS\r\n- On Android 6.x OS, it's not happening with native application, it's happening only with Titanium app.\r\n\r\nSo, can you guys try it on any Android 6.x device (it gives you range to chose any android device, not just the mentioned ones)?", "updateAuthor": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-25T06:13:49.000+0000", "updated": "2017-12-25T06:13:49.000+0000" }, { "id": "435688", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I can't reproduce this issue with Android 6.0 emulator in SDK 7.0.2.GA. I don't observe the flickering of keyboard change when I press the back button. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-03-16T21:02:11.000+0000", "updated": "2018-03-16T21:02:11.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }