{ "id": "164818", "key": "TIMOB-24192", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-12-20T19:20:10.000+0000", "created": "2016-12-03T03:09:44.000+0000", "priority": { "name": "None", "id": "6" }, "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": "2017-01-03T23:50:20.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": "Android: PickerRow.setColor is not a function despite mentions in [docs|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.PickerRow]. Issue is not seen in iOS.\r\n\r\n*TEST CASE*\r\n\r\n{code:JavaScript}\r\ntry {\r\n\tvar w = Ti.UI.createWindow({\r\n\t\t\t\texitOnClose: true,\r\n\t\t\t\tlayout: 'vertical',\r\n\t\t\t\tbackgroundColor: 'black'\r\n\t\t\t}),\r\n\t\t\tp = Ti.UI.createPicker({\r\n\t\t\t\ttop: 50\r\n\t\t\t}),\r\n\t\t\tapple = Ti.UI.createPickerRow({\r\n\t\t\t\ttitle: 'apple',\r\n\t\t\t\tcolor: 'red'\r\n\t\t\t}),\r\n\t\t\tgrape = Ti.UI.createPickerRow({\r\n\t\t\t\ttitle: 'grape',\r\n\t\t\t\tcolor: 'purple'\r\n\t\t\t}),\r\n\t\t\td = [apple, grape];\r\n\t\r\n\tapple.setColor(\"green\");\r\n\t\r\n\tp.add(d);\r\n\tp.selectionIndicator = true;\r\n\tw.add(p);\r\n\t\r\n\tw.open();\r\n} catch (err) {\r\n\tTi.API.debug(\"test msg error \" + err);\r\n}\r\n{code}\r\n\r\n*EXPECTED*\r\n_apple_ color set to green and _grape_ color set to purple.\r\n\r\n*ACTUAL*\r\nError {{D/TiAPI: test msg error TypeError: apple.setColor is not a function}} on Android and _apple_ color set to green and _grape_ color set to purple on iOS.\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: PickerRow.setColor is not a function", "creator": { "name": "fmerzadyan-OLD", "key": "fmerzadyan", "displayName": "Farzad Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fmerzadyan", "key": "fmerzadyan2", "displayName": "Frankie Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK 6.1.0\r\n", "closedSprints": [ { "id": 770, "state": "closed", "name": "2016 Sprint 25 SDK", "startDate": "2016-12-03T01:53:07.491Z", "endDate": "2016-12-17T01:53:00.000Z", "completeDate": "2016-12-21T03:19:43.884Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "403008", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8669", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-08T19:24:58.000+0000", "updated": "2016-12-08T19:24:58.000+0000" }, { "id": "404043", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, error is no longer shown and the apple color is set to green and the grape color is set to purple. \r\n*Environement*\r\n{code:java}\r\nAppcelerator Command-Line Interface, version 6.1.0\r\nAndroid 7.1 (Google Nexus 6P)\r\nOperating System Name: Mac OS X El Capitan\r\nOperating System Version: 10.11.6\r\nNode.js Version: 4.6.0\r\nnpm: 4.2.8\r\nTitanium SDK Version: 6.1.0.v20170103153718\r\nXcode: 8.0\r\nAppcelerator Studio: 4.8.1.201612050850{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-03T23:49:49.000+0000", "updated": "2017-01-03T23:50:10.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }