{
"id": "175440",
"key": "TIMOB-28084",
"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": "21052",
"description": "",
"name": "Release 9.3.0",
"archived": false,
"released": true,
"releaseDate": "2020-12-14"
}
],
"resolution": {
"id": "1",
"description": "A fix for this issue is checked into the tree and tested.",
"name": "Fixed"
},
"resolutiondate": "2020-11-25T14:59:07.000+0000",
"created": "2020-08-15T00:49:29.000+0000",
"priority": {
"name": "Low",
"id": "4"
},
"labels": [
"android",
"theme",
"translucent",
"window"
],
"versions": [],
"issuelinks": [],
"assignee": {
"name": "jquick",
"key": "jquick",
"displayName": "Joshua Quick",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updated": "2020-11-25T14:59:07.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\nIf \"tiapp.xml\" has {{}} set to {{true}}, then it is ignored by windows which...\r\n* Have \"modal\" set to {{true}}\r\n* Have an \"opacity\" less than {{1.0}}\r\n* Have an RGBA background color with a transparent alpha\r\n* Have a \"translucent\" theme\r\n\r\n*Note:*\r\nIf a custom theme is applied to the {{}} element in the \"AndroidManifest.xml\", then the {{}} setting should be ignored. This is because the custom theme takes priority and must hide the top ActionBar/TitleBar instead.\r\n\r\n*Steps to reproduce:*\r\n# Copy the below \"tiapp.xml\" setting.\r\n# Build and run the below code on Android.\r\n# Notice that the 1st window does not show title bar. _(This is good.)_\r\n# Tap on the \"Show Translucent Window\" button.\r\n# Notice that shown window has a tile bar. _(This is the bug.)_\r\n\r\ntiapp.xml\r\n{code:xml}\r\n\r\n\ttrue\r\n\r\n{code}\r\n\r\napp.js\r\n{code:javascript}\r\nvar parentWindow = Ti.UI.createWindow({\r\n\ttitle: \"Parent Window\",\r\n\tbackgroundColor: \"white\",\r\n});\r\nvar openButton = Ti.UI.createButton({\r\n\ttitle: \"Show Translucent Window\",\r\n\tbottom: \"15dp\",\r\n});\r\nopenButton.addEventListener(\"click\", function() {\r\n\tvar childWindow = Ti.UI.createWindow({\r\n\t\ttitle: \"Translucent Window\",\r\n\t\tbackgroundColor: \"black\",\r\n\t\topacity: 0.5,\r\n\t});\r\n\tchildWindow.add(Ti.UI.createLabel({\r\n\t\ttext: \"This is the translucent window.\",\r\n\t\tcolor: \"white\",\r\n\t}));\r\n\tchildWindow.addEventListener(\"open\", function() {\r\n\t\tsetTimeout(function() {\r\n\t\t\tchildWindow.close();\r\n\t\t}, 1500);\r\n\t});\r\n\tchildWindow.addEventListener(\"androidback\", function() {\r\n\t\tchildWindow.close();\r\n\t\tparentWindow.close();\r\n\t});\r\n\tchildWindow.open();\r\n});\r\nparentWindow.add(openButton);\r\nparentWindow.open();\r\n{code}\r\n\r\n*Work-Around:*\r\nUse the \"Theme.AppCompat.Translucent.NoTitleBar\" theme.\r\n{code:javascript}\r\nvar childWindow = Ti.UI.createWindow({\r\n\ttitle: \"Translucent Window\",\r\n\tbackgroundColor: \"black\",\r\n\topacity: 0.5,\r\n\ttheme: \"Theme.AppCompat.Translucent.NoTitleBar\", // <- Add this\r\n});\r\n{code}\r\n",
"attachment": [],
"flagged": false,
"summary": "Android: Modal/Translucent window ignores setting in \"tiapp.xml\"",
"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,
"closedSprints": [
{
"id": 1206,
"state": "closed",
"name": "2020 Sprint 19",
"startDate": "2020-09-14T20:01:00.000Z",
"endDate": "2020-09-25T20:01:00.000Z",
"completeDate": "2020-09-28T15:30:19.875Z",
"originBoardId": 114
}
],
"comment": {
"comments": [
{
"id": "456494",
"author": {
"name": "jquick",
"key": "jquick",
"displayName": "Joshua Quick",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "PR (9.3.x): https://github.com/appcelerator/titanium_mobile/pull/11921",
"updateAuthor": {
"name": "jquick",
"key": "jquick",
"displayName": "Joshua Quick",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2020-08-18T03:23:08.000+0000",
"updated": "2020-08-18T03:23:08.000+0000"
},
{
"id": "457045",
"author": {
"name": "smohammed",
"key": "smohammed",
"displayName": "Samir Mohammed",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "FR Passed, waiting on Jenkins build. ",
"updateAuthor": {
"name": "smohammed",
"key": "smohammed",
"displayName": "Samir Mohammed",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2020-09-28T13:13:31.000+0000",
"updated": "2020-09-28T13:13:31.000+0000"
},
{
"id": "457718",
"author": {
"name": "smohammed",
"key": "smohammed",
"displayName": "Samir Mohammed",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "*Closing ticket*. bug fix verified in SDK version {{9.3.0.v20201125050632}}.\r\n\r\n*Test and other information can be found at:\r\n*https://github.com/appcelerator/titanium_mobile/pull/11921",
"updateAuthor": {
"name": "smohammed",
"key": "smohammed",
"displayName": "Samir Mohammed",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2020-11-25T14:58:49.000+0000",
"updated": "2020-11-25T14:58:49.000+0000"
}
],
"maxResults": 4,
"total": 4,
"startAt": 0
}
}
}