{ "id": "86249", "key": "TIMOB-7584", "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": "12097", "description": "", "name": "Sprint 2012-05", "archived": true, "released": true, "releaseDate": "2012-03-11" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-05-03T15:29:51.000+0000", "created": "2012-02-08T18:48:03.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_window", "qe-testadded", "regression" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "26432", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "87891", "key": "TIMOB-7986", "fields": { "summary": "Android: Create window now opens a new blank (black) window then draws in the content.", "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": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-03-07T00:51:50.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": "h2. Problem\r\nWhen opening a new window, the background color of the new window is displayed for a brief moment and then objects are drawn and added to the screen. This is happening from 1.8.0.1 - it's not reproducible on 1.7.5.\r\nOpening the new window on 1.8.0.1 with V8 is still overall faster than on 1.7.5 (around 4-5 times faster, something around 120ms against 500ms).\r\n\r\nh2. Steps to reproduce\r\nThe behavior is noticeable especially on the emulator (since is less reactive).\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n navBarHidden : true,\r\n backgroundColor : 'green',\r\n});\r\n\r\nfunction createNewWin() {\r\n var win2 = Ti.UI.createWindow({\r\n navBarHidden : true,\r\n backgroundColor : 'black',\r\n });\r\n\r\n for( i = 0; i < 20; i++) {\r\n var view = Ti.UI.createView({\r\n backgroundColor : 'blue',\r\n });\r\n win2.add(view);\r\n }\r\n\r\n return win2;\r\n}\r\n\r\nvar button = Ti.UI.createButton({\r\n title : 'Open New Win',\r\n width : 150,\r\n height : 60,\r\n top : 20\r\n});\r\n\r\nwin.add(button);\r\n\r\nbutton.addEventListener('click', function() {\r\n var win3 = createNewWin();\r\n win3.open();\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\n\r\nh2. Link\r\nTicket related: http://support-admin.appcelerator.com/display/APP-175314", "attachment": [], "flagged": false, "summary": "Android: opening a new window, background color is briefly displayed before objects are added to the screen", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 1.8.0.1\r\nTiSDK 1.9 CI\r\n\r\ntested on Android Nexus One 2.3.4\r\n\r\nNot reproducible on 1.7.5", "comment": { "comments": [ { "id": "186717", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120315140247\r\nRuntime: v8, rhino\r\nTitanium Studio, build: 2.0.0.201203142055\r\nDevice: Droid 1 (2.2.3)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-15T15:51:23.000+0000", "updated": "2012-03-15T15:51:23.000+0000" }, { "id": "193635", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening/closing to add/remove labels", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-03T15:27:54.000+0000", "updated": "2012-05-03T15:27:54.000+0000" }, { "id": "241080", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/1586", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-07T00:48:59.000+0000", "updated": "2013-03-07T00:48:59.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }