{ "id": "86882", "key": "TIMOB-7790", "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": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-08-26T22:09:26.000+0000", "created": "2012-02-23T09:52:05.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2013-10-23T06:39:46.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\n\r\nWhen running an intro animation or creating a window animation fade with opacity from 0 to 1, a change in orientation resets the animation state of the window to its original created state and the animated end state.\r\n\r\nh2. Test case\r\n\r\nHere is a use case followed by a code example of this problem.\r\n\r\nI have an app with 2 different splash screens based on portrait and landscape orientation. My app consists of a single window that has a few UI elements, labels such like within, the window is created with an opacity of 0. When the app loads, it triggers an animate function to take the opacity to 1. As the window has 2 orientation states, when the user flips the device in either direction, the original window state is restored and, thus, the opacity of the window becomes transparent (reverts to 0), which causes the splash screen to show through.\r\n\r\n{code:lang=javascript|title=app.js}\r\nTi.UI.setBackgroundColor('#fff');\r\nvar win1 = Ti.UI.createWindow({\r\n\ttitle : 'Anim Test',\r\n\tbackgroundColor : '#fff',\r\n\texitOnClose : true,\r\n\tnavBarHidden : false,\r\n\topacity : 0\r\n});\r\nwin1.orientationModes = [Ti.UI.PORTRAIT, Ti.UI.LANDSCAPE_LEFT];\r\nvar label1 = Ti.UI.createLabel({\r\n\tcolor : '#000',\r\n\ttext : 'Main Application Window, after fade.',\r\n\tfont : {\r\n\t\tfontSize : 20,\r\n\t\tfontFamily : 'Helvetica Neue'\r\n\t},\r\n\ttextAlign : 'center',\r\n\twidth : 'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\nwin1.animate({\r\n\topacity : 1,\r\n\tduration : 3000\r\n});\r\nwin1.open();\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: UI.Animation - orientation change resets animation to original state", "creator": { "name": "stereoket", "key": "stereoket", "displayName": "Ketan Majmudar", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "stereoket", "key": "stereoket", "displayName": "Ketan Majmudar", "active": true, "timeZone": "Europe/London" }, "environment": "* Titanium Mobile SDK Version: 1.8.1\r\n* Android 2.2 & 2.3.5\r\n* v8\r\n* HTC Wildfire S & Orange San Fransisco (Blade) a WVGA style device\r\n* OS X 10.6.9\r\n* TiStudio Version: 1.0.8.201201262211\r\n", "comment": { "comments": [ { "id": "184076", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Ket\r\n\r\nPlease state the specific devices tested, or the emulator if you have tested that.\r\nPlease state the runtime used.\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-23T11:14:51.000+0000", "updated": "2012-02-23T11:14:51.000+0000" }, { "id": "184082", "author": { "name": "stereoket", "key": "stereoket", "displayName": "Ketan Majmudar", "active": true, "timeZone": "Europe/London" }, "body": "Tested on HTC Wildfire S & Orange San Fransisco (Blade) a WVGA style device", "updateAuthor": { "name": "stereoket", "key": "stereoket", "displayName": "Ketan Majmudar", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-23T11:32:07.000+0000", "updated": "2012-02-23T11:32:07.000+0000" }, { "id": "184086", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Runtime please.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-23T12:13:03.000+0000", "updated": "2012-02-23T12:13:03.000+0000" }, { "id": "184087", "author": { "name": "stereoket", "key": "stereoket", "displayName": "Ketan Majmudar", "active": true, "timeZone": "Europe/London" }, "body": "v8 for both.", "updateAuthor": { "name": "stereoket", "key": "stereoket", "displayName": "Ketan Majmudar", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-23T12:16:57.000+0000", "updated": "2012-02-23T12:16:57.000+0000" }, { "id": "240698", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces with\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\nDevice: Samsung galaxy s duos Android version: 4.0.4", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-05T12:16:49.000+0000", "updated": "2013-03-05T12:16:49.000+0000" }, { "id": "268232", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "The effort for TIMOB-11811 fixed this.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-08-26T22:09:13.000+0000", "updated": "2013-08-26T22:09:13.000+0000" }, { "id": "276309", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix:\r\n\r\nAppc-Studio: 3.2.0.201310181700\r\nSdk:3.2.0.v20131022171645\r\nalloy:1.2.2\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processor:1.0.3\r\nDevice:Google Nexus 7(v4.3), iPhone5(v7.0)\r\nXcode: 5\r\nOS: Mac OSX 10.8\r\n\r\n\r\nOrientation does not change back animation to its original state now.\r\nCode working fine.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-23T06:39:46.000+0000", "updated": "2013-10-23T06:39:46.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }