{ "id": "169002", "key": "TIMOB-24987", "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": "19870", "description": "", "name": "Release 6.1.2", "archived": false, "released": true, "releaseDate": "2017-08-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-07-26T21:37:13.000+0000", "created": "2017-07-18T12:03:58.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "merge-6.1.2", "regression" ], "versions": [], "issuelinks": [ { "id": "55452", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "168312", "key": "TIMOB-24799", "fields": { "summary": "Android: Theme Causing Issues in SDK 6.2.2.GA", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "55453", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "168717", "key": "TIMOB-24917", "fields": { "summary": "Android: Splash screens not loading", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-26T23:08:36.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": "After upgrading from Ti SDK 5.2.0 to 6.1.1.GA, all Alloy compiled Android TextField and TextView elements do not appear to fire any events that trigger the OS keyboard to appear (for text input).\r\n\r\nThis means that the majority of the app we are upgrading is completely unusable - and this completely blocks our upgrade until it is resolved / explained.\r\n\r\nExample code below shows fields in three different positions - none of which work currently (but did previously):\r\n\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nI can see in the TiSlack community channel that we're not the only people encountering this issue (screenshot attached) - can you give us some idea of what is the root cause of this, and when it will be resolved?\r\n\r\n(note - other elements nested in the same locations, such as buttons or labels, are touchable and can be interacted with - this has been tested on a Genymotion 7.1 simulator, along with real Samsung 7.0 and 6.0 devices)", "attachment": [ { "id": "62896", "filename": "android-text-input.png", "author": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "created": "2017-07-18T12:00:36.000+0000", "size": 130820, "mimeType": "image/png" }, { "id": "62903", "filename": "max-node-version.png", "author": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "created": "2017-07-19T07:31:42.000+0000", "size": 53581, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: TextField and TextView elements in SDK 6.1.1.GA do not fire focus events / trigger keyboard when using custom theme", "creator": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "environment": "Ti SDK 6.1.1.GA\r\nAppcelerator CLI 6.2.2\r\nNode 4.6.2\r\nAndroid SDK Platform-tools 23.3", "comment": { "comments": [ { "id": "424282", "author": { "name": "johngoodland", "key": "johngoodland", "displayName": "John Goodland", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can’t reproduce this Pete - sorry.\r\n \r\nI have this working as expected on Samsung Galaxy A3 (device) and Genymotion Samsung Galaxy S6. Beware the keyboard may be hidden on Genymotion and you need to turn it on. Option is change Keyboard – Hardware – Show input method.\r\n \r\nHappy to supply code, but it’s pretty much as per your example. Creating a new app mobile app using 6.1.1 GA from studio.\r\n ", "updateAuthor": { "name": "johngoodland", "key": "johngoodland", "displayName": "John Goodland", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-18T14:38:41.000+0000", "updated": "2017-07-18T14:38:41.000+0000" }, { "id": "424292", "author": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "body": "Could the problem be down to something that needs to be upgraded? We're starting from an Alloy 5.2.0 base, moving to 6.1.1 - do you see the same result from that path too?", "updateAuthor": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "created": "2017-07-18T16:24:37.000+0000", "updated": "2017-07-18T16:24:37.000+0000" }, { "id": "424294", "author": { "name": "johngoodland", "key": "johngoodland", "displayName": "John Goodland", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I went direct with a new app. Could you try that please? At least that way we will know its maybe something with the old Alloy base? thanks.", "updateAuthor": { "name": "johngoodland", "key": "johngoodland", "displayName": "John Goodland", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-18T16:31:19.000+0000", "updated": "2017-07-18T16:31:19.000+0000" }, { "id": "424297", "author": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "body": "To confirm - from a *brand new* app - built directly from 6.1.1.GA - this problem doesn't occur with the following code in the index.xml file:\r\n\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nSo this must be related to the upgrade process / flow?", "updateAuthor": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "created": "2017-07-18T16:53:53.000+0000", "updated": "2017-07-18T16:53:53.000+0000" }, { "id": "424305", "author": { "name": "johngoodland", "key": "johngoodland", "displayName": "John Goodland", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks Pete. Could you please add your tiapp.xml (from the upgraded app) to this ticket and I will get engineering to look into this.", "updateAuthor": { "name": "johngoodland", "key": "johngoodland", "displayName": "John Goodland", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-18T18:06:42.000+0000", "updated": "2017-07-18T18:06:59.000+0000" }, { "id": "424308", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Node Version: 6.10.3\r\nNPM Version: 3.10.10\r\nMac OS: 10.12.4\r\nAppc CLI: 6.2.2\r\nAppc CLI NPM: 4.2.9\r\nTitanium SDK version: 6.1.1.GA\r\nAppcelerator Studio, build: 4.9.0.201705302345\r\nXcode 8.3.2\r\nDevice Android 7.1 (Pixel)\r\nAndroid SDK API level 23\r\n\r\nI was not able to reproduce the issue, and the app worked as expected. After I launched the app with the above demo code, the OS keyboard appeared.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-18T18:20:04.000+0000", "updated": "2017-07-18T18:22:32.000+0000" }, { "id": "424311", "author": { "name": "johngoodland", "key": "johngoodland", "displayName": "John Goodland", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The bug appears to be in updated 5.2 base Alloy code that has been migrated to 6.1.1GA. I have request that Pete sends us the tipapp.xml to see what differences it may contain. Do you have any suggests to properties a newly created alloy app will have over an older one? or even an old Alloy code base you could try?", "updateAuthor": { "name": "johngoodland", "key": "johngoodland", "displayName": "John Goodland", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-18T18:26:26.000+0000", "updated": "2017-07-18T18:26:26.000+0000" }, { "id": "424360", "author": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "body": "I'd rather not post the contents of our *tiapp.xml* file on a public ticket - but I'd be happy to go through it over a technical call, or a screen share?\r\n\r\nNote that Abir's tests do not use the same versions of Node, etc as we are using - as according to your docs anything above 4.6.x is unsupported (see attached screenshot [from this page|http://docs.appcelerator.com/platform/latest/#!/guide/Titanium_Compatibility_Matrix-section-src-29004837_TitaniumCompatibilityMatrix-Node.js]).", "updateAuthor": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "created": "2017-07-19T07:31:27.000+0000", "updated": "2017-07-19T07:31:27.000+0000" }, { "id": "424444", "author": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "body": "After a huge amount of trial and error over the last two days, I've hit on what's different between some upgraded apps, and a _vanilla_ app - and what seems to be causing this.\r\n\r\nIf you add something like this:\r\n\r\n{code:xml}\r\n\r\n\r\n \r\n\r\n{code}\r\n\r\n...to a *platform/android/res/values-v-min-api-level/custom_theme.xml* file - it should be easy to get into this scenario with a *new* 6.1.1.GA app. Remove the custom theme file, and the Android ActionBar reappears (which is undesirable) - but the text fields work as expected.\r\n\r\nI'm assuming that this is due to a contract change somewhere, and this approach is no longer supported? If so - what's the correct (supported) method of achieving this currently?", "updateAuthor": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "created": "2017-07-20T10:47:54.000+0000", "updated": "2017-07-20T10:52:40.000+0000" }, { "id": "424446", "author": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "body": "Looking at this more - it might be custom themes in general that are having issues. Is [this page on Android theming|http://docs.appcelerator.com/platform/latest/#!/guide/Android_Themes-section-src-34636181_AndroidThemes-CustomThemes] still correct?", "updateAuthor": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "created": "2017-07-20T12:29:00.000+0000", "updated": "2017-07-20T12:29:00.000+0000" }, { "id": "424448", "author": { "name": "cbowley", "key": "cbowley", "displayName": "Chris Bowley", "active": true, "timeZone": "Europe/London" }, "body": "[~plancaster] I can replicate the issue using your custom theme. I can't answer what the cause is but if I use a custom theme which inherits from AppCompat it does not affect TextField focus:\r\n\r\n{code:xml}\r\n\r\n\r\n \r\n\r\n{code}", "updateAuthor": { "name": "cbowley", "key": "cbowley", "displayName": "Chris Bowley", "active": true, "timeZone": "Europe/London" }, "created": "2017-07-20T12:43:37.000+0000", "updated": "2017-07-20T12:44:05.000+0000" }, { "id": "424449", "author": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "body": "So is the issue is just related to inheritance from *Theme.Titanium*? Is that documentation out of date now? Should *Theme.AppCompat* always be used as a parent instead?", "updateAuthor": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "created": "2017-07-20T12:56:37.000+0000", "updated": "2017-07-20T12:56:37.000+0000" }, { "id": "424474", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~amukherjee] Could you test this with the current build of {{6.1.2}}, there has been some recent changes regarding themes.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-20T19:31:55.000+0000", "updated": "2017-07-20T19:31:55.000+0000" }, { "id": "424478", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "[~gmathews], 6.2.0.v20170719160617 works.-, except the textfield has a black background by default.-", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2017-07-20T20:42:10.000+0000", "updated": "2017-07-20T21:31:35.000+0000" }, { "id": "424497", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~gmathews] Here is what I saw:\r\nSDK 6.1.2.v20170720023139: Keyboard does not appear.\r\nSDK 6.2.0.v20170720152752: Keyboard appears.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-20T23:45:25.000+0000", "updated": "2017-07-20T23:45:59.000+0000" }, { "id": "424627", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~plancaster],\r\n\r\nThe reason this is happening is because we've modified Titanium 6.1.0 so that its \"Theme.Titanium\" theme would inherit (via the \"parent\" attribute) the theme that was applied to your application.\r\n https://github.com/appcelerator/titanium_mobile/pull/8592\r\n\r\nSince your custom theme inherits from \"Theme.Titanium\", this is triggering a *recursive* lookup and causing this bad behavior, because \"Theme.Titanium\" is inheriting your custom theme because it's applied to the application. You can tell when a recursive resource file lookup is happening when the following Android message gets logged...\r\n{code}ResourceType: Attempt to retrieve bag 0x7f050090 which is invalid or in a cycle.{code}\r\n\r\nYou can work-around this and restore the behavior you had before by changing your theme XML to what's shown below. This is a copy-and-paste of our \"Theme.Titanium\" XML settings and will work on both Titanium 5.x and 6.x. Although you might not want the \"android:windowBackground\" part since it'll show the Titanium splash screen on all the windows you'll be displaying.\r\n\r\n{code:xml}\r\n\r\n\r\n\t\r\n\r\n{code}\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-25T01:15:46.000+0000", "updated": "2017-07-25T01:18:49.000+0000" }, { "id": "424711", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (6.1.x): https://github.com/appcelerator/titanium_mobile/pull/9253\r\nPR (6.2.x): https://github.com/appcelerator/titanium_mobile/pull/9254\r\nPR (master): https://github.com/appcelerator/titanium_mobile/pull/9255\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-26T01:10:47.000+0000", "updated": "2017-07-26T01:10:47.000+0000" }, { "id": "424843", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed for 6.1.2, 6.2.0 & 7.0.0 branch.\r\nPR's merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-26T21:37:13.000+0000", "updated": "2017-07-26T22:34:22.000+0000" }, { "id": "424854", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 6.1.2.v20170726152015.\r\n\r\nClosing.\r\n\r\nStudio Ver: 4.9.1.201707200100\r\nSDK Ver: 6.1.2.v20170726152015\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.3\r\nAppc NPM: 4.2.9\r\nAppc CLI: 6.2.2\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.9.11\r\nNode Ver: 6.10.1\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ google Nexus 5 --- Android 6.0.1, Android 4.4.4", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-26T23:08:24.000+0000", "updated": "2017-07-26T23:08:24.000+0000" } ], "maxResults": 22, "total": 22, "startAt": 0 } } }