{ "id": "93725", "key": "TIMOB-9739", "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": "2012-06-23T12:15:53.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "core", "insight", "qe-and060112" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "17956", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "88189", "key": "TIMOB-8091", "fields": { "summary": "Android: Animation with 'autoreverse' does not work on Android", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:03:51.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": "Description:\r\nAnimation stops working on Android after switching off/on \"Reverse\" function.\r\n\r\nSteps to reproduce:\r\n1. Run the following code on Android:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nwin.backgroundColor = \"white\";\r\n\r\nvar transform = Ti.UI.create2DMatrix().rotate(90);\r\n\r\nvar v = Ti.UI.createView({\r\n\tright: \"10dp\",\r\n\twidth: \"100dp\",\r\n\theight: \"100dp\",\r\n\ttop: \"10dp\",\r\n\tbackgroundColor: \"#444\"\r\n});\r\n\r\nwin.add(v);\r\n\r\nwin.add(Ti.UI.createLabel({\r\n\ttext: \"Reverse?:\",\r\n\tleft: \"10dp\", width: \"90dp\",\r\n\tcolor: \"black\",\r\n\theight: \"40dp\", top: \"10dp\"\r\n}));\r\n\r\nwin.add(Ti.UI.createLabel({\r\n\ttext: \"Repeat:\",\r\n\tleft: \"10dp\", width: \"90dp\",\r\n\tcolor: \"black\",\r\n\theight: \"40dp\", top: \"55dp\"\r\n}));\r\n\r\nvar reverse = Ti.UI.createSwitch({\r\n\tvalue: true,\r\n\tleft: \"95dp\", top: \"10dp\"\r\n});\r\n\r\nwin.add(reverse);\r\n\r\nvar repeat = Ti.UI.createTextField({\r\n\tvalue: \"1\",\r\n\tkeyboardType: Ti.UI.KEYBOARD_NUMBER_PAD,\r\n\tleft: \"95dp\", top: \"55dp\",\r\n\twidth: \"80dp\", height: \"40dp\",\r\n\tcolor: \"black\",\r\n\tborderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED\r\n});\r\nwin.add(repeat);\r\n\r\nvar btnAnimate = Ti.UI.createButton({\r\n\ttitle: \"Animate\",\r\n\ttop: \"100dp\", left: \"10dp\",\r\n\twidth: \"90dp\", height: \"40dp\"\r\n});\r\nwin.add(btnAnimate);\r\n\r\nbtnAnimate.addEventListener(\"click\", function() {\r\n\tvar repeatCount = parseInt(repeat.value, 10);\r\n\tif (isNaN(repeatCount) || repeatCount < 1) {\r\n\t\talert(\"Be sensible! Positive repeat count please!\");\r\n\t\treturn;\r\n\t}\r\n\r\n\tv.animate({\r\n\t\ttransform: transform,\r\n\t\tduration: 500,\r\n\t\tautoreverse: reverse.value,\r\n\t\trepeat: repeatCount\r\n\t});\r\n});\r\n\r\n\r\nwin.open();\r\n{code}\r\n2. Press \"Animate\" button\r\n3. Switch \"Reverse\" off and press \"Animate\"\r\n4. Switch \"Reverse\" on and press \"Animate\"\r\n\r\nActual result:\r\nAnimation does not work\r\n\r\nExpected result:\r\nAnimation should work", "attachment": [], "flagged": false, "summary": "Android: Animation stops working on Android after switching off/on \"Reverse\" function.", "creator": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio, build: 2.1.0.201206221045\r\nTitanium SDK: 2.1.0.v20120622174154\r\nDevice: Samsung Galaxy tab (3.2)", "comment": { "comments": [ { "id": "242246", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem reproduces with release 3.0.2 and master release 3.1.0\n\ntested on\n\nTitanium Studio, build: 3.0.2.201302191606\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \nDevice: Samsung galaxy s duos Android version: 4.0.4\nAndroid Emulator: Android SDK version: 2.2\niOS iPhone Simulator: iOS SDK version: 6.0\n\nit works similarly in ios emulator.", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-14T15:56:33.000+0000", "updated": "2013-03-14T15:56:33.000+0000" }, { "id": "266375", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "IMO this acts as expected. When you turn it off and click animate, it rotates to 90° and doesn't reverse. Therefore the next time you click animate it has nothing to do (it's already at 90°).", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-08-14T00:51:15.000+0000", "updated": "2013-08-14T00:51:15.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }