{ "id": "174865", "key": "TIMOB-27826", "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": [], "resolution": null, "resolutiondate": null, "created": "2020-03-27T16:35:47.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "20950", "name": "Release 9.1.0", "archived": false, "released": true, "releaseDate": "2020-08-25" } ], "issuelinks": [ { "id": "58290", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "174523", "key": "TIMOB-27779", "fields": { "summary": "Android: Setting \"labels\" via TabbedBar \"click\" event hangs app", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2020-03-27T16:40:22.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Note* this PR needs to be merged first https://github.com/appcelerator/titanium_mobile/pull/11495.\r\n\r\nThis is a parity issue between iOS and Android. After Setting \"labels\" via TabbedBar \"click\" on Android I am unable to move through the new tabs while on iOS I am able to. \r\n\r\n*Test case*\r\n{code:java}\r\nvar window = Ti.UI.createWindow();\r\nvar tabbedBar = Ti.UI.createTabbedBar();\r\ntabbedBar.labels = [\"One\", \"Two\", \"Three\"];\r\ntabbedBar.addEventListener(\"click\", function() {\r\n\tconsole.log(new Date() + \" tbrSortTLby Click event triggerred\");\r\n\ttabbedBar.labels = ['Three', 'Four', 'Five'];\r\n})\r\nwindow.add(tabbedBar);\r\nwindow.open();\r\n{code}\r\n\r\n*Test Steps*\r\n# Create a titanium application (if above PR is not merged create the build using the PR)\r\n# Add the test case above into the titanium application \r\n# Run the test case\r\n# Click on a tab (tab 2 for instance)\r\n# Try click on tab 4\r\n\r\nWith the above test steps on Android you will not be able to click on Tab 4 but on iOS you will be able to.\r\n\r\n*Working Android example code:*\r\n{code:java}\r\nvar window = Ti.UI.createWindow();\r\nvar tabbedBar = Ti.UI.createTabbedBar();\r\nvar secondVersion = false;\r\ntabbedBar.labels = [\"One\", \"Two\", \"Three\"];\r\ntabbedBar.addEventListener(\"click\", function() {\r\n\tconsole.log(new Date() + \" tbrSortTLby Click event triggerred\");\r\n\tif (!secondVersion) {\r\n\t\ttabbedBar.labels = ['Three', 'Four', 'Five'];\r\n\t}\r\n\tsecondVersion = true;\r\n})\r\nwindow.add(tabbedBar);\r\nwindow.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Unable to select tabs after setting \"labels\" via TabbedBar \"click\" (Parity)", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacOS Catalina: 10.15.1 beta\r\nXcode: 11.3\r\nJava Version: 1.8.0_131\r\nAndroid NDK: 21.1.6273396-beta2\r\nNode.js: 10.16.3\r\n\"\"NPM\":\"5.0.0-1\",\"CLI\":\"8.0.0-master.10\"\"\r\nPixel Xl 7.1.1 Sim", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }