{ "id": "175720", "key": "TIMOB-28240", "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": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" } ], "resolution": null, "resolutiondate": null, "created": "2020-11-12T13:54:54.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-11-20T00:24:15.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": "Note* This error is only seen in the following PR https://github.com/appcelerator/titanium_mobile/pull/12029\r\n\r\nTable view rows colour does not disappear after a few seconds but on 9.2.2.GA and iOS it does. \r\n\r\n*Test Case:*\r\n{code:java}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar myTableView = Ti.UI.createTableView();\r\n\r\nvar row = Ti.UI.createTableViewRow({\r\n\theight:80,\r\n\tbackgroundColor:'#c00',\r\n});\r\n\r\nmyTableView.appendRow(row);\r\n\r\nwin.add(myTableView);\r\n\r\nwin.addEventListener('open',function(){\r\n\tsetTimeout(function(){\r\n\t\tTi.API.debug(JSON.stringify(myTableView));\r\n\t\tvar tableRows = myTableView.data[0].rows;\r\n\t\tTi.API.debug(JSON.stringify(tableRows));\r\n\t\ttableRows.pop(); // returns the error org.mozilla.javascript.EcmaError: TypeError: Cannot find default value for object.\r\n\t\tmyTableView.data = tableRows;\r\n\t},2000); // two seconds after the window opens, remove the red row\r\n});\r\n\r\n/* you can swap out the open event listener with this one to see my alternative also fail\r\nwin.addEventListener('open',function(){\r\n\tsetTimeout(function(){\r\n\t\tTi.API.debug(JSON.stringify(myTableView));\r\n\t\tvar tableRows = myTableView.sections[0].rows; // returns the error Message: Java class \"java.util.ArrayList\" has no public instance field or method named \"0\".\r\n\t\tTi.API.debug(JSON.stringify(tableRows));\r\n\t\ttableRows.pop();\r\n\t\tmyTableView.data = tableRows;\r\n\t},2000); // two seconds after the window opens, remove the red row\r\n});\r\n*/\r\n\r\nwin.open();\r\n{code}\r\n\r\n*Test Steps:*\r\n# Create a Ti application\r\n# Add the code above into the application \r\n# Run the app \r\n\r\n*Expected result*\r\nRow should go from red to white after a few seconds.\r\n\r\n*Actual result*\r\nRow colour does not change. ", "attachment": [], "flagged": false, "summary": "Android: TableViewRow unable to change colour of row after a set time (Regression)", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacOS Big Sur: 11.0 Beta 9\r\nXcode: 12.2 Beta\r\nJava Version: 1.8.0_242\r\nAndroid NDK: 21.3.6528147\r\nNode.js: 12.18.1\r\n\"\"NPM\":\"5.0.0\",\"CLI\":\"8.1.1\"\"\r\niphone 11 (14.2) Sim\r\nPIXEL XL 10.0 Emulator", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }