{ "id": "176230", "key": "TIMOB-28485", "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": "21199", "description": "", "name": "Release 10.0.1", "archived": false, "released": true, "releaseDate": "2021-07-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-06-15T09:29:13.000+0000", "created": "2021-06-10T00:11:35.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "progressbar", "regression", "tintColor" ], "versions": [ { "id": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-06-15T09:29:13.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": "*Summary:*\r\nAs of Titanium 10.0.0, Android's {{Ti.UI.ProgressBar}} properties \"tintColor\" and \"trackTintColor\" are ignored. These color can only be assigned via a theme.\r\n\r\n*Steps to reproduce:*\r\n# Build and run the below code on Android.\r\n# Observe the progress bar colors.\r\n\r\n{code:java}\r\nlet timerId = null;\r\nconst window = Ti.UI.createWindow();\r\nconst progressBar = Ti.UI.createProgressBar({\r\n\ttintColor: \"green\", // Ignored as of 10.0.0\r\n\ttrackTintColor: \"red\", // Ignored as of 10.0.0\r\n\tanimated: false,\r\n\tmin: 0,\r\n\tmax: 100,\r\n\tvalue: 0,\r\n\twidth: \"80%\",\r\n});\r\nwindow.add(progressBar);\r\nwindow.addEventListener(\"open\", () => {\r\n\ttimerId = setInterval(() => {\r\n\t\tconst value = progressBar.value + 1;\r\n\t\tprogressBar.value = (value <= 100) ? value : 0;\r\n\t\tprogressBar.message = `Progress at ${progressBar.value}%`;\r\n\t}, 50);\r\n});\r\nwindow.addEventListener(\"close\", () => {\r\n\tif (timerId) {\r\n\t\tclearInterval(timerId);\r\n\t\ttimerId = null;\r\n\t}\r\n});\r\nwindow.open();\r\n{code}\r\n\r\n*Result:*\r\nNotice the \"tintColor\" and \"trackTintColor\" above are ignored, where the progress bar should be green with a red background.\r\n!ProgressBarTintBad.png|thumbnail!\r\n\r\n*Expected Result:*\r\n !ProgressBarTintGood.png|thumbnail! \r\n", "attachment": [ { "id": "67934", "filename": "ProgressBarTintBad.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-06-10T01:08:40.000+0000", "size": 404923, "mimeType": "image/png" }, { "id": "67935", "filename": "ProgressBarTintGood.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-06-10T01:08:40.000+0000", "size": 404825, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: ProgressBar \"tintColor\" and \"trackTintColor\" are ignored as of 10.0.0", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "458755", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12878", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-06-10T00:52:22.000+0000", "updated": "2021-06-10T00:52:22.000+0000" }, { "id": "458768", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged to master", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-06-14T23:16:39.000+0000", "updated": "2021-06-14T23:16:39.000+0000" }, { "id": "458771", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "10_0_X PR merged", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-06-15T09:29:09.000+0000", "updated": "2021-06-15T09:29:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }