{ "id": "85488", "key": "TIMOB-7412", "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": "12096", "description": "", "name": "Sprint 2012-04", "archived": true, "released": true, "releaseDate": "2012-02-26" }, { "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-03-11T22:31:45.000+0000", "created": "2012-01-25T16:22:38.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_animation", "parity", "qe-and012312", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [ { "id": "15081", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "85508", "key": "TIMOB-7416", "fields": { "summary": "Android: Simple animation causes application crash", "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 } } } }, { "id": "15245", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "86616", "key": "TIMOB-7688", "fields": { "summary": "Android: Animation: button makes view blinking on 2.x devices", "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": "2012-06-06T21:56:08.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": "Steps To Reproduce:\r\n1. Run the attached code:\r\n{code} \r\nTi.UI.setBackgroundColor('white');\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'black'\r\n});\r\n\r\nvar fromColor = '#2d6e32';\r\nvar toColor = '#35883b';\r\n\r\nvar v = Ti.UI.createView({\r\n\twidth: '100dp',\r\n\theight: '100dp',\r\n\tbackgroundColor: fromColor\r\n});\r\n\r\nvar b = Ti.UI.createButton({\r\n\ttitle: 'Animate',\r\n\tbottom: '10dp',\r\n\tleft: '10dp'\r\n});\r\n\r\nb.addEventListener('click', function() {\r\n\tv.animate({\r\n\t\tbackgroundColor: toColor,\r\n\t\tduration: 500\r\n\t});\r\n});\r\n\r\nvar b1 = Ti.UI.createButton({\r\n\ttitle: 'Reset',\r\n\tbottom: '10dp',\r\n\tright: '10dp'\t\r\n});\r\n\r\nb1.addEventListener('click', function() {\r\n\tv.backgroundColor = toColor;\r\n\tv.backgroundColor = fromColor;\r\n});\r\n\r\nvar v1 = Ti.UI.createView({\r\n\twidth : '50dp',\r\n\theight: '50dp',\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\nwin.add(v);\r\nwin.add(b);\r\nwin.add(b1);\r\nwin.add(v1);\r\n\r\nwin.open();\r\n{code}\r\n2. Click Animate\r\n\r\nActual Result:\r\nThe window background color became transparent\r\n\r\nExpected Result:\r\nThe window background color should stay black\r\n\r\nNote:\r\nExisted in 1.8.0.1 and works in 1.7.5", "attachment": [], "flagged": false, "summary": "Android: V8/Rhino: Animation: Setting animation on a lightweight window makes the window color go transparent", "creator": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac 10.6.8\r\nSDK: 1.8.1.v20120124200134\r\nDroid 3 (2.3.4)", "comment": { "comments": [ { "id": "182800", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue is not about LW window. Any view with animation attached becomes transparent after animating.\r\nSample code:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\t//fullscreen: true, // No matter LW or HW window\r\n\tbackgroundColor: 'blue'\r\n});\r\n\r\nvar bkgdView = Ti.UI.createView({\r\n\twidth: '200dp',\r\n\theight: '200dp',\r\n\tbackgroundColor: 'white'\r\n});\r\nwin.add(bkgdView);\r\n\r\nvar fromColor = 'green';\r\nvar toColor = 'red';\r\n\r\nvar v = Ti.UI.createView({\r\n\twidth: '100dp',\r\n\theight: '100dp',\r\n\tbackgroundColor: fromColor\r\n});\r\n\r\nvar b = Ti.UI.createButton({\r\n\ttitle: 'Animate',\r\n\tbottom: '10dp',\r\n\tleft: '10dp'\r\n});\r\n\r\nb.addEventListener('click', function() {\r\n\tv.animate({\r\n\t\tbackgroundColor: toColor,\r\n\t\tduration: 500\r\n\t});\r\n});\r\n\r\nbkgdView.add(v);\r\nwin.add(b);\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-10T14:56:43.000+0000", "updated": "2012-02-10T14:56:43.000+0000" }, { "id": "183418", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Testing code:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\t//fullscreen: true, // Should work for both LW and HW window\r\n\tbackgroundColor: 'blue'\r\n});\r\n\r\nvar bkgdView = Ti.UI.createView({\r\n\twidth: '200dp',\r\n\theight: '200dp',\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\nvar fromColor = 'green';\r\nvar toColor = 'red';\r\n\r\nvar v = Ti.UI.createView({\r\n\twidth: '100dp',\r\n\theight: '100dp',\r\n\tbackgroundColor: fromColor\r\n});\r\n\r\nv.addEventListener('click', function() {\r\n\tv.animate({\r\n\t\tbackgroundColor: toColor,\r\n\t\tduration: 500\r\n\t});\r\n});\r\n\r\nbkgdView.add(v);\r\nwin.add(bkgdView);\r\nwin.open();\r\n{code}\r\n\r\nTesting steps:\r\n1. Run the above testing code on 2.x devices.\r\n2. Click the green view.\r\n\r\nExpected result:\r\nThe green view should animate from green to red. During the animation and at the end of the animation, the background (white) view should remain white.\r\n\r\nSome research notes:\r\n1. The issue that background view becomes transparent after the animation only happens on 2.x devices.\r\n2. If running this testing code using HW window on 3.x devices, the background view will not show up at the first time rendering (TIMOB-7685).", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-16T11:27:28.000+0000", "updated": "2012-02-16T12:26:37.000+0000" }, { "id": "185394", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.0.0.v20120307090205 with Nexus S 2.3.6", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-07T12:56:03.000+0000", "updated": "2012-03-07T12:56:03.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }