{ "id": "95061", "key": "TIMOB-9960", "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": null, "resolutiondate": null, "created": "2012-07-12T18:03:49.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:20.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Description\r\nRun the attached code and note that the color does not always change to the color shown in the label, it stays black (or alternates with the color shown before rotation). Rotating the device forces the color update generally.\r\n\r\nThis is not a regression, this occurs with 2.1.0GA as well.\r\n:\r\n\r\n{code}\r\nvar _window= Ti.UI.createWindow();\r\n\r\n// Android does not currently support: brown. The color yellow is used when a name is not recognised.\r\n\r\nvar webcolor = [\r\n  'black', 'gray', 'darkgray', 'lightgray', 'white', 'red', 'green', 'blue', 'cyan', 'yellow',\r\n  'magenta', 'orange', 'purple', 'brown', 'transparent',\r\n  'aqua', 'fuchsia', 'lime', 'maroon', 'pink', 'navy', 'silver', 'olive', 'teal'];\r\n \r\nvar webcolorPointer = 0;\r\n \r\n\r\n  _window.backgroundColor= webcolor[webcolorPointer];\r\n\r\n  _window.fullscreen= false;\r\n  _window.layout= 'vertical';\r\n  _window.title= 'Webcolor Demo';\r\n \r\nvar label = Ti.UI.createLabel({\r\n  backgroundColor: 'white',\r\n  text: webcolor[webcolorPointer]\r\n});\r\nwebcolorPointer++;\r\n \r\n_window.add(label);\r\n \r\n// click window to iterate through color array\r\n_window.addEventListener('click', function(e){\r\n  e.source.backgroundColor = webcolor[webcolorPointer];\r\n  label.text = webcolor[webcolorPointer];\r\n  webcolorPointer++;\r\n  if(webcolorPointer === webcolor.length){\r\n    webcolorPointer = 0;\r\n  }\r\n});\r\n\r\n_window.open();\r\n\r\n{code}\r\n\r\n\r\nSteps to reproduce:\r\n1) create new studio project with attached code and run on device \r\n2) tap the screen \r\n\r\nActual result: \r\nIn each tap, the color of the window is black, and some \"color name\" label appears at the top of the screen. \r\n\r\n\r\nExpected Result:\r\nThe window changes color on each tap. In each case, the color of the window should match the color name label shown at the top", "attachment": [], "flagged": false, "summary": "Android: Window: V8 - Background color doesn't change color after each tap on some tablets", "creator": { "name": "kasanbekov", "key": "kasanbekov", "displayName": "Kanat Asanbekov", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kasanbekov", "key": "kasanbekov", "displayName": "Kanat Asanbekov", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Samsung GT-P7510 (3.2), LG-V909 (3.1)\r\nTitanium Studio, build: 2.1.1.201207111907\r\nSDK 2.1.0.GA and 2.1.1.v20120705143056", "comment": { "comments": [ { "id": "240355", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem reproduces with release 3.0.2 and master release 3.1.0\n\ntested on:\n\nTitanium Studio, build: 2.1.2.201208301612\nTitanium SDK version: 3.1.0 (01/03/2013)\nTitanium SDK version: 3.0.2 (01/03/2013)\nDevice: Samsung galaxy s duos Android version: 4.0.4\n\n\nBut Window changes color on each tap except in the case of \"Brown\" and \"Transparent\".It shows \"Yellow\" and \"Black\" background in response of \"Brown\" and \"Transparent\" in RELEASE 3.0.2 , \"black\" for both in MASTER RELEASE 3.1.0. \n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-01T13:56:28.000+0000", "updated": "2013-03-01T13:56:28.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }