{ "id": "141591", "key": "TIMOB-18247", "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": "2014-12-15T17:08:46.000+0000", "priority": null, "labels": [ "Ti.Gesture.Orientation", "android", "api" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:07.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "Add an orientation event listener. Rotate to Landscape, remove the event listener. Rotate back to portrait and add the listener. Rotate to Landscape, the gesture is not detected. This behavior is fixed if an app-wide orientation listener is added in another file and persists throughout the app's lifetime. Only occurs on Android, not on iOS.", "attachment": [ { "id": "53245", "filename": "orientationExample.js", "author": { "name": "g4be", "key": "g4be", "displayName": "Gabriel Mario Aguirre", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-16T17:52:13.000+0000", "size": 1037, "mimeType": "text/javascript" } ], "flagged": false, "summary": "Ti.Gesture.Orientation does not update when listener is added and removed in Landscape/Portrait", "creator": { "name": "g4be", "key": "g4be", "displayName": "Gabriel Mario Aguirre", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "g4be", "key": "g4be", "displayName": "Gabriel Mario Aguirre", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.4.1, Android devices", "comment": { "comments": [ { "id": "336507", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nPlease provide a simple test case to reproduce your problem, that will be really helpful to address it. Thanks\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-12-16T03:22:29.000+0000", "updated": "2014-12-16T03:22:29.000+0000" }, { "id": "336586", "author": { "name": "g4be", "key": "g4be", "displayName": "Gabriel Mario Aguirre", "active": true, "timeZone": "America/Los_Angeles" }, "body": "(UPDATE: you will need to add the correct button add statements view.add(button2), view.add(button1) , sorry I forgot that)\r\n\r\nI have attached a simple guide to the problem. The steps to take are:\r\n1. Load the app in Portrait and add the event listener for orientation change\r\n2. Rotate the phone to Landscape\r\n3. Press the \"Remove Listener\" button to remove the listener\r\n4. Rotate back to portrait\r\n5. Add the event listener again.\r\n6. Rotate to Landscape, observe that the orientation change is not picked up.", "updateAuthor": { "name": "g4be", "key": "g4be", "displayName": "Gabriel Mario Aguirre", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-16T17:46:38.000+0000", "updated": "2014-12-17T15:41:09.000+0000" }, { "id": "338006", "author": { "name": "g4be", "key": "g4be", "displayName": "Gabriel Mario Aguirre", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have been running into a simpler case now. When I compile the application, immediately rotate to Landscape from Portrait and add the event listener, the inital rotation back to Portrait is ignored. This renders anything to do with orientation useless for my application. And update would be greatly appreciated.", "updateAuthor": { "name": "g4be", "key": "g4be", "displayName": "Gabriel Mario Aguirre", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-06T18:41:14.000+0000", "updated": "2015-01-06T18:41:14.000+0000" }, { "id": "344943", "author": { "name": "g4be", "key": "g4be", "displayName": "Gabriel Mario Aguirre", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any updates on this issue? I would consider it a large issue.", "updateAuthor": { "name": "g4be", "key": "g4be", "displayName": "Gabriel Mario Aguirre", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-03T18:10:53.000+0000", "updated": "2015-03-03T18:10:53.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }