{ "id": "117240", "key": "TIMOB-14567", "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": "15576", "description": "2013 Sprint 16", "name": "2013 Sprint 16", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "15578", "description": "2013 Sprint 16 API", "name": "2013 Sprint 16 API", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-08-12T05:55:47.000+0000", "created": "2013-07-16T20:35:54.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_label", "parity", "qe-testadded" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [ { "id": "30250", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "116320", "key": "ALOY-717", "fields": { "summary": "Improve \"reflow\"/\"repaint\" functionality when adding and removing classes", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2013-10-10T10:32: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": "h2. problem\r\n\r\nWhen setting the *color* property of a Ti.UI.Label to *null* it makes the color transparent on Android. On iOS and Mobileweb the color is returned to the default black (#000). While the default color can be determined by the underlying platform, it should be a visible color to give parity across the platforms. In others words, setting *color* to null should either make the color transparent on all platforms, or a solid color on all platforms.\r\n\r\nh2. expected\r\n\r\nWhen I set the the *color* property of a Ti.UI.Label to *null*, I expect the behavior, whether it makes the Label transparent or a solid color, to be the same on all platforms.\r\n\r\nh2. test case \r\n\r\nh4. app.js\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#fff',\r\n\tmodal: false,\r\n\texitOnClose: true\r\n});\r\nvar label = Ti.UI.createLabel({\r\n\ttext: 'just a test label'\r\n});\r\nlabel.addEventListener('click', function(e) {\r\n\tlabel.color = null;\r\n});\r\n\r\nwin.add(label);\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Setting \"color\" to null on Label causes color to be transparent", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.1.1\r\nAndroid 2.3.3", "comment": { "comments": [ { "id": "263359", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "PR:-\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4498", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-07-26T06:50:29.000+0000", "updated": "2013-07-26T06:50:29.000+0000" }, { "id": "274574", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with:\r\n\r\nAppc-Studio: 3.2.0.201310100354\r\nSdk:3.2.0.v20131009134844\r\nalloy:1.2.2\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processor:1.0.3\r\nDevice:Google Nexus 7(v4.3),ipodTouch1(v7.0)\r\nXcode: 5\r\n\r\n\r\nSetting \"color\" to null on Label remains by default as black solid color on both the platform iOS and Android.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-10T10:31:59.000+0000", "updated": "2013-10-10T10:31:59.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }