{ "id": "176159", "key": "TIMOB-28424", "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": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-04-23T11:42:01.000+0000", "created": "2021-04-20T22:04:27.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "color", "picker", "regression", "theme" ], "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-04-23T11:42:01.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, a \"plain\" {{Ti.UI.Picker}} with \"useSpinner\" set to {{false}} (aka: a drop-down picker) won't update its row text colors when switching dark/light theme. You have to force-quit the app to make it use the system's current default text color.\r\n\r\n*Steps to reproduce:*\r\n# Build and run the below on an Android 10 or newer device.\r\n# Verify that you can see text in the picker.\r\n# Go to System Settings -> Display\r\n# Toggle the Dark/Light theme switch.\r\n# Go back to the app.\r\n# Notice that the picker's text color has not changed.\r\n\r\n{code:javascript}\r\nconst window = Ti.UI.createWindow();\r\nconst rows = [];\r\nfor (let index = 1; index <= 5; index++) {\r\n\trows.push(Ti.UI.createPickerRow({ title: `Item ${index}` }));\r\n}\r\nconst picker = Ti.UI.createPicker({\r\n\tcolumns: [Ti.UI.createPickerColumn({ rows: rows })],\r\n\twidth: \"50%\",\r\n});\r\npicker.addEventListener(\"change\", (e) => {\r\n\tTi.API.info(`@@@ Selected rowIndex: ${e.rowIndex}, rowTitle: \"${e.row.title}\"`);\r\n});\r\nwindow.add(picker);\r\nwindow.open();\r\n{code}\r\n\r\n*Work-Around:*\r\nSet the picker's row text color as shown below.\r\n{code:javascript}\r\nTi.UI.createPickerRow({ title: `Item ${index}`, color: \"?attr/colorOnSurface\" });\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Drop-down picker text color does not change when switching dark/light theme", "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": "458602", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12734", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-20T22:15:48.000+0000", "updated": "2021-04-20T22:15:48.000+0000" }, { "id": "458609", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master and 10_0_X branches", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-04-23T11:41:58.000+0000", "updated": "2021-04-23T11:41:58.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }