{ "id": "103880", "key": "TIMOB-11571", "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": "14700", "description": "2012 Sprint 25", "name": "2012 Sprint 25", "archived": true, "released": true, "releaseDate": "2012-12-17" }, { "id": "14699", "description": "2012 Sprint 25 Core", "name": "2012 Sprint 25 Core", "archived": true, "released": true, "releaseDate": "2012-12-17" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-12-14T01:07:10.000+0000", "created": "2012-10-24T23:09:59.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-07T18:28:39.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": "h1. Description problem\r\nOpening a modal window from another modal shows a flickering transition; the problem is not happening all the times, but almost (I'd say more than 90%).\r\n\r\nh1. Steps to reproduce\r\n- Create an app with this code:\r\n{code}\r\nvar num = 1;\r\nfunction createWin() {\r\n var win = Ti.UI.createWindow({\r\n backgroundColor: 'black',\r\n modal: true\r\n });\r\n \r\n var image = Ti.UI.createImageView({\r\n image: '/images/' + (num++ % 3 + 1) + '.jpg',\r\n top: 10,\r\n left: 10,\r\n width: 300,\r\n height: 200\r\n });\r\n \r\n win.add(image);\r\n \r\n var button = Ti.UI.createButton({\r\n title: \"Next\",\r\n top: 300\r\n });\r\n \r\n button.addEventListener('click', createWin);\r\n \r\n win.add(button);\r\n \r\n win.open();\r\n}\r\n\r\ncreateWin();\r\n{code}\r\n\r\n- Put 3 different images in the Resources/images directory (I set 300x200)\r\n- Run the app and click Next: most of the times the next window is shown for a fraction of second, then the current window is shown again before the second is fully opened (e.g. you see a flickering effect).\r\n\r\nh1. Additional notes\r\nThe problem does not happen with lightweight windows, but in that case the back button wouldn't work; if modal is set to false, the problem does not happen as well, but the animation of the opening window is not so nice as well.", "attachment": [], "flagged": false, "summary": "Android: opening a modal window from another modal shows a flickering transition", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android 4.1\r\n", "comment": { "comments": [ { "id": "225312", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "I noticed that, adding \"opacity: 0\" to the window properties, this problem does not occour; however, in that case you see through the window, so you have to add another view to \"simulate\" the background, which is not ideal at all.", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-10-29T11:25:04.000+0000", "updated": "2012-10-29T11:25:04.000+0000" }, { "id": "225373", "author": { "name": "ttorimoto", "key": "ttorimoto", "displayName": "Taka Torimoto", "active": true, "timeZone": "America/New_York" }, "body": "Thanks for that suggestion Davide - yes that workaround works for now (I have to attach a view with a background color set - in my case, to white - for each Window created).\n\nThe screen switching (if you sit there going back and forth) seems noticeably slower with this workaround.\n\nAlso - if you go back and forth fast - it does seem to go into a weird state (probably related to the Runtime Error I would get previously with a completely blank \"white\" window) that said:\n\nRuntime Error\nLocation: [425,15] ti:/window.js\nMessage: Uncaught TypeError: Cannot call method 'add' of null\nSource: this.view.add(this._children[i]);\n\nI'm using Mobile SDK 2.1.3 \n\n", "updateAuthor": { "name": "ttorimoto", "key": "ttorimoto", "displayName": "Taka Torimoto", "active": true, "timeZone": "America/New_York" }, "created": "2012-10-29T18:59:22.000+0000", "updated": "2012-10-29T18:59:22.000+0000" }, { "id": "225374", "author": { "name": "ttorimoto", "key": "ttorimoto", "displayName": "Taka Torimoto", "active": true, "timeZone": "America/New_York" }, "body": "Sorry - let me reword that one sentence:\n\nAlso - if you go back and forth fast - it does seem to go into a weird state where it seems to show an \"invisible\" window (with a cursor stuck NON-blinking on a field on the current window) that you can \"escape\" from by pressing the BACK button... probably related to the Runtime Error I used to get previously with a completely blank \"white\" window that said:\n", "updateAuthor": { "name": "ttorimoto", "key": "ttorimoto", "displayName": "Taka Torimoto", "active": true, "timeZone": "America/New_York" }, "created": "2012-10-29T19:01:04.000+0000", "updated": "2012-10-29T19:01:04.000+0000" }, { "id": "231380", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've tried this on 2.3, 3.0, 4.1 devices with 2.1.3GA/3.0.0 Titanium SDK and I can't reproduce the flicker mentioned. I'm going to mark this as cannot reproduce until we get more information regarding the pictures used / or further information.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-14T01:07:10.000+0000", "updated": "2012-12-14T01:07:10.000+0000" }, { "id": "251264", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with: \r\nSDK:3.1.1.v20130509173053\r\nAppcelerator Studio: 3.1.1.201305091152\r\nOS: OSX 10.7.5\r\nDevice: Nexus7(4.1), Android emulator 2.3.3\r\n\r\nCannot reproduce\r\n", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-10T10:11:47.000+0000", "updated": "2013-05-10T10:11:47.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }