{ "id": "84005", "key": "TIMOB-6734", "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": "2017-06-28T19:31:31.000+0000", "created": "2011-12-16T17:32:56.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-and121411", "qe-new" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-28T19:31:31.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": "Steps to reproduce: \r\n1. Copy and run the following code:\r\n\r\n{code:title=app.js}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Test',\r\n backgroundColor:'#000',\r\n\texitOnClose: true\r\n});\r\n\r\nvar cb, btn;\r\nvar tv = null;\r\nwin.add(cb = Ti.UI.createSwitch({\r\n\tvalue: true,\r\n\tstyle: Ti.UI.Android.SWITCH_STYLE_CHECKBOX,\r\n\ttitle: \"Give one row backgroundSelectedColor\",\r\n\ttop: \"5dp\", left: \"5dp\", right: \"5dp\", height: \"60dp\"\r\n}));\r\nwin.add(btn = Ti.UI.createButton({\r\n\ttitle: \"Create TableView\",\r\n\ttop: \"65dp\", left: \"5dp\", width: \"200dp\", height: \"40dp\"\r\n}));\r\nbtn.addEventListener('click', function(e) {\r\n\tif (tv !== null) {\r\n\t\twin.remove(tv);\r\n\t}\r\n\twin.add(tv = Ti.UI.createTableView({\r\n\t\ttop: \"110dp\", left: \"0dp\", right: \"0dp\", bottom: \"0dp\"\r\n\t}));\r\n\r\n\r\n\tvar rows = [];\r\n\tfor (var i = 0; i < 10; i++) {\r\n\t\tvar row = Ti.UI.createTableViewRow();\r\n\t\trow.title = \"Row \" + (i + 1);\r\n\t\tif (i === 5 && cb.value) {\r\n\t\t\trow.title = \"The Evil Row\";\r\n\t\t\trow.backgroundSelectedColor = \"blue\";\r\n\t\t}\r\n\t\tif (i === 8) {\r\n\t\t\t// Just testing standard background\r\n\t\t\trow.backgroundColor = \"yellow\";\r\n\t\t\trow.title = \"I am yellow\";\r\n\t\t}\r\n\t\trows.push(row);\r\n\t}\r\n\ttv.setData(rows);\r\n});\r\n\r\n\r\nwin.open();\r\n{code}\r\n\r\n2. Click on \"Create TableView\"\r\n3. Click on \"The Evil Row\"\r\n\r\nResult: Row stays highlighted in blue until you rotate the device.\r\nExpected: Selected row should not stay highlighted regardless of row color.\r\n\r\nNote:\r\n* Bug appears on both V8 and Rhino\r\n* Tested on Droid 1 (2.2.2) running V8/Rhino and bug does not appear on Droid 1", "attachment": [], "flagged": false, "summary": "Android: selectedBackgroundColor - V8/Rhino, Selected row stays highlighted until you rotate the device", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK build: 1.8.0.1.v20111216124633\r\nTitanium Studio, build: 1.0.7.201112152014\r\nRuntime: V8, Rhino\r\nDevice: LG Slate (3.1)\r\n", "comment": { "comments": [ { "id": "176401", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-12-16T17:36:40.000+0000", "updated": "2011-12-16T17:36:40.000+0000" }, { "id": "423068", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of progress over the past few years. Any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-28T19:31:31.000+0000", "updated": "2017-06-28T19:31:31.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }