{ "id": "169202", "key": "TIMOB-25039", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2020-08-18T23:59:06.000+0000", "created": "2017-07-31T18:02:41.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-08-18T23:59:06.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": "Not able to change row color of Label added inside Table view row.\r\n\r\nSteps to reproduce this issue :-\r\n# Create a Table View with search bar \r\n# Add complex table view row with a thumb image and UI label\r\n# Register click event to toggle UI label colors.\r\n# You can make use of sample JS code attached below. \r\n# When using this code, search for 'e' in table view search bar and start clicking table view rows\r\n\r\n*Expected* : It should change color as per code\r\n*Actual* : Sometimes its not changing the UI label color\r\n\r\nPlease also find the snapshot attached below\r\n\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.12.2\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 6.3.1\r\n npm Version = 3.10.3\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\nTitanium SDK\r\n SDK Version = 6.1.2\r\n Target Platform = android\r\n\r\n\r\n\r\n", "attachment": [ { "id": "62954", "filename": "FirstView.js", "author": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-31T17:58:01.000+0000", "size": 2296, "mimeType": "text/javascript" }, { "id": "62953", "filename": "Screenshot_2017-07-31-23-26-42.png", "author": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-31T18:00:30.000+0000", "size": 35147, "mimeType": "image/png" } ], "flagged": false, "summary": "Android Table View Row Coloring issue", "creator": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "425139", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "I can reproduce the issue with the given code for Android 6.0.0 with SDK 6.1.0.GA. The color of row label is not changing to red always. For some row it does. others it doesn't. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-07-31T22:12:09.000+0000", "updated": "2017-07-31T22:12:09.000+0000" }, { "id": "428333", "author": { "name": "homeinspectorpro", "key": "homeinspectorpro", "displayName": "Dominic Maricic", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any update on this? It looks like you were able to reproduce. ", "updateAuthor": { "name": "homeinspectorpro", "key": "homeinspectorpro", "displayName": "Dominic Maricic", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-22T13:21:20.000+0000", "updated": "2017-09-22T13:21:20.000+0000" }, { "id": "428401", "author": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is happening more on Ti SDK 6.2.0 and Android 7.x", "updateAuthor": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-25T08:15:46.000+0000", "updated": "2017-09-25T08:16:06.000+0000" }, { "id": "428402", "author": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please try to fix this one asap, or lets us know if there is any workaround available for it.\r\nWe are losing lots of customers who have upgraded to our latest release and Android 7.x", "updateAuthor": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-25T08:17:37.000+0000", "updated": "2017-09-25T08:17:37.000+0000" }, { "id": "428431", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I cannot reproduce the issue with the test case provided or my own. Here's another test case:\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'gray'}),\r\n tableView = Ti.UI.createTableView(),\r\n tableData = [];\r\n\r\nfor (var i = 0; i < 10; i++) {\r\n var row = Ti.UI.createTableViewRow({\r\n height: Ti.UI.SIZE\r\n }),\r\n img = Ti.UI.createImageView({\r\n image: 'android/appicon.png',\r\n width: 50, height: 50\r\n }),\r\n lbl = Ti.UI.createLabel({\r\n text: 'ROW #' + i,\r\n color: '#FFF'\r\n });\r\n row.add([img, lbl]);\r\n tableData.push(row);\r\n}\r\ntableView.data = tableData;\r\n\r\ntableView.addEventListener('click', function(e) {\r\n var row = e.row;\r\n row.children[1].color = 'blue';\r\n});\r\n\r\nwin.add(tableView);\r\nwin.open();\r\n{code}\r\n\r\nThis has been fixed by https://github.com/appcelerator/titanium_mobile/pull/9415, try 6.2.2.GA?", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-25T21:30:43.000+0000", "updated": "2017-09-25T23:41:10.000+0000" }, { "id": "428438", "author": { "name": "homeinspectorpro", "key": "homeinspectorpro", "displayName": "Dominic Maricic", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Gary, are you saying you could reproduce it on versions before 6.2.1, just not after? ", "updateAuthor": { "name": "homeinspectorpro", "key": "homeinspectorpro", "displayName": "Dominic Maricic", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-25T23:39:30.000+0000", "updated": "2017-09-25T23:39:30.000+0000" }, { "id": "428477", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~lchoudhary] Could you take a look at reproducing this?", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-26T15:55:45.000+0000", "updated": "2017-09-26T15:55:45.000+0000" }, { "id": "428483", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~gmathews], I was not able to reproduce the issue.\r\nThe row label changes color from black > red > green > black each time its clicked.\r\nTried it with SDK 6.1.0.GA, 6.1.2.GA, 6.2.0.GA, 6.2.1.GA & 6.2.2.GA.\r\n\r\nStudio Ver: 4.9.1.201707200100\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.3\r\nAppc NPM: 4.2.9\r\nAppc CLI: 6.2.4\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.9.14\r\nNode Ver: 7.10.1\r\nJava Ver: 1.8.0_101\r\nAndroid : 7.1.1 , 6.0\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-26T17:17:06.000+0000", "updated": "2017-09-26T17:17:06.000+0000" }, { "id": "428757", "author": { "name": "homeinspectorpro", "key": "homeinspectorpro", "displayName": "Dominic Maricic", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We found out more details on this. You can produce it a lot more if your device is set to high contrast mode on a device like the Note 8. The color change completely breaks.", "updateAuthor": { "name": "homeinspectorpro", "key": "homeinspectorpro", "displayName": "Dominic Maricic", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-05T20:26:02.000+0000", "updated": "2017-10-05T20:26:02.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }