{ "id": "175497", "key": "TIMOB-28108", "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": "21051", "description": "", "name": "Release 9.2.0", "archived": false, "released": true, "releaseDate": "2020-09-23" }, { "id": "21057", "description": "", "name": "Release 9.1.1", "archived": true, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-09-09T11:49:03.000+0000", "created": "2020-09-02T04:37:00.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2020-09-09T11:49:03.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "On Ti 9.0.3.GA, on iOS only, if we pass a valid {{Ti.UI.fetchSemanticColor(\"xxx\")}} to the {{tintColor}} of a {{Ti.UI.RefreshControl}}, it crashes the app with a message that the view received an instance of TiColor instead of a string.\r\n\r\nOn Android, passing a semantic color to the {{tintColor}} parameter of the {{RefreshControl}} works fine.\r\n\r\nTested on both iOS 13 and iOS 14 on {{9.0.3.GA}}", "attachment": [], "flagged": false, "summary": "iOS - Ti.UI.RefreshControl crashes when passing a tintColor from TI.UI.fetchSemanticColor", "creator": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "environment": null, "comment": { "comments": [ { "id": "456690", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Confirmed as bug on my side. \r\n\r\nPR: https://github.com/appcelerator/titanium_mobile/pull/12002", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-09-02T16:37:05.000+0000", "updated": "2020-09-02T16:37:05.000+0000" }, { "id": "456696", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test Case:\r\n\r\n*Resources/semantic.colors.json*\r\n{code:js}\r\n{\r\n\t\"primaryBackground\": {\r\n\t\t\"light\": \"#efece3\",\r\n\t\t\"dark\": \"#001900\"\r\n\t}\r\n}\r\n{code}\r\n\r\n*Resources/app.js*\r\n{code:js}\r\nconst primaryBackground = Ti.UI.fetchSemanticColor('primaryBackground');\r\n\r\nvar win = Ti.UI.createWindow({\r\n fullscreen:true\r\n});\r\nvar counter = 0;\r\nfunction genData()\r\n{\r\n var data = [];\r\n var i=1;\r\n for (i=1;i<=3;i++) {\r\n data.push({properties:{title:'ROW '+(counter+i)}});\r\n }\r\n counter += 3;\r\n return data;\r\n}\r\nvar section = Ti.UI.createListSection();\r\nsection.setItems(genData());\r\nvar control = Ti.UI.createRefreshControl({\r\n tintColor:primaryBackground\r\n});\r\nvar listView = Ti.UI.createListView({\r\n sections:[section],\r\n refreshControl:control\r\n});\r\ncontrol.addEventListener('refreshstart',function(e){\r\n Ti.API.info('refreshstart');\r\n setTimeout(function(){\r\n Ti.API.debug('Timeout');\r\n section.appendItems(genData());\r\n control.endRefreshing();\r\n }, 2000);\r\n});\r\nwin.add(listView);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-09-02T22:09:46.000+0000", "updated": "2020-09-03T13:03:37.000+0000" }, { "id": "456697", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed\r\nWaiting for Jenkins build", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-09-02T23:25:09.000+0000", "updated": "2020-09-02T23:25:09.000+0000" }, { "id": "456700", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Workaround for current 9.2.0: Pass the name of the semantic color directly, e.g. {{tintColor: 'primaryBackground'}}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-09-03T06:47:45.000+0000", "updated": "2020-09-03T06:47:45.000+0000" }, { "id": "456786", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*. Fix verified in SDK version {{9.2.0.v20200908050955}}, and {{9.3.0.v20200908051946}}.\r\n\r\n*Test and other information can be found at:*\r\nhttps://github.com/appcelerator/titanium_mobile/pull/12002", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-09-09T11:48:55.000+0000", "updated": "2020-09-09T11:48:55.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }