{ "id": "175441", "key": "TIMOB-28085", "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-08-15T01:02:24.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "animation", "translucent", "window" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-02-22T19:07:37.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": "*Summary:*\r\nOpening a modal/translucent window does *+not+* show an open animation by default, but closing the window does show a close animation. This behavior is inconsistent.\r\n\r\nA modal/translucent window should *+NOT+* show an open/close animation by default. This was the intended behavior and would match iOS' behavior.\r\n\r\n*Steps to reproduce:*\r\n# Build and run the below code on Android.\r\n# Tap on the \"Show Translucent Window\" button.\r\n# Notice that translucent suddenly appears without animation. _(This is good.)_\r\n# Wait for the window to auto-close itself within 2 seconds.\r\n# Notice that the window closed with an animation. _(This is the bug.)_\r\n\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\nWhen closing the translucent window, set the \"animated\" property to {{false}}.\r\n{code:javascript}\r\nwindow.close({ animated: false });\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Modal/Translucent window wrongly shows a close animation by default", "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": [], "maxResults": 0, "total": 0, "startAt": 0 } } }