{ "id": "176247", "key": "TIMOB-28501", "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-07-19T14:04:09.000+0000", "created": "2021-07-02T01:02:37.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "TabGroup", "android", "map", "regression" ], "versions": [ { "id": "21199", "description": "", "name": "Release 10.0.1", "archived": false, "released": true, "releaseDate": "2021-07-28" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-07-19T14:04:22.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\nDisplaying the \"ti.map\" module's {{MapView}} within a {{TabGroup}} crashes as of Titanium 10.0.1.\r\n\r\nThis bug was caught before release.\r\n\r\n*Steps to reproduce:*\r\n# Build and run the below on Android.\r\n# Notice the app crashes on app startup.\r\n\r\n{code:java}\r\nconst map = require(\"ti.map\");\r\nconst tabWindow1 = Ti.UI.createWindow();\r\ntabWindow1.add(map.createView({\r\n\twidth: Ti.UI.FILL,\r\n\theight: Ti.UI.FILL,\r\n}));\r\nconst tabWindow2 = Ti.UI.createWindow();\r\ntabWindow2.add(Ti.UI.createLabel({ text: \"Tab 2\" }));\r\nconst tabWindow3 = Ti.UI.createWindow();\r\ntabWindow3.add(Ti.UI.createLabel({ text: \"Tab 3\" }));\r\nconst tabGroup = Ti.UI.createTabGroup({\r\n\ttabs: [\r\n\t\tTi.UI.createTab({ title: \"Tab 1\", window: tabWindow1 }),\r\n\t\tTi.UI.createTab({ title: \"Tab 2\", window: tabWindow2 }),\r\n\t\tTi.UI.createTab({ title: \"Tab 3\", window: tabWindow3 }),\r\n\t],\r\n});\r\ntabGroup.open();\r\n{code}\r\n\r\n*Cause:*\r\nThis issue was caused by the Java {{TiViewProxy.handleGetView()}} method change made by the PR below. The issue is the native tab's parent activity was never set to the actual TabGroup activity.\r\nhttps://github.com/appcelerator/titanium_mobile/pull/12909/files#diff-c1ca52b23726a03177273b78aed424203d8f5352bf7ba2022f74e2f8ad536ce3\r\n", "attachment": [], "flagged": false, "summary": "Android: MapView within TabGroup crashes as of 10.0.1", "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": "458834", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12932", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-07-02T01:16:41.000+0000", "updated": "2021-07-02T01:16:41.000+0000" }, { "id": "458867", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "master and 10_0_X backport merged", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-07-19T14:04:22.000+0000", "updated": "2021-07-19T14:04:22.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }