{ "id": "149980", "key": "TIMOB-19878", "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": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-15T00:10:14.000+0000", "created": "2015-07-29T09:23:29.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "4.1.0", "android", "genymotion", "orientation", "orientationChange" ], "versions": [], "issuelinks": [ { "id": "56035", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "166809", "key": "TIMOB-24537", "fields": { "summary": "Android: Ti.Gesture should provide device orientation like iOS", "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": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-15T06:21:56.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": "h4.What happens:\r\nOn first rotation no event is triggered. On every orientation change thereafter, the wrong orientation is returned. I have observed similar behavior on a physical device but I can not reproduce it consistently. In genymotion it happens every time.\r\n\r\n\r\n\r\nh4.Note: The project must be an alloy project. The problem does not occur in a non alloy project. Orientation works correctly in TI SDK 4.0.0.GA\r\n\r\nh4.How to reproduce:\r\n\r\n1. Create new Empty alloy project\r\n2. Set index.js to:\r\n{code}\r\nfunction doClick(e) {\r\n alert($.label.text);\r\n}\r\n\r\n$.index.open();\r\n\r\nTi.Gesture.addEventListener('orientationchange', gestureChange);\r\n\r\nfunction gestureChange(e) {\r\n console.log('orientation change...');\r\n console.log(e);\r\n}\r\n{code}\r\n3. Start app in genymotion\r\n4. Output from console:\r\n\r\nFirst rotation results in no output. Next rotation back into Portrait results in the following:\r\n{code}\r\n[INFO] orientation change...\r\n[INFO] {\"type\":\"orientationchange\",\"source\":{\"landscape\":true,\"bubbleParent\":true,\"orientation\":2,\"apiName\":\"Ti.Gesture\",\"portrait\":false,\"_events\":{\"orientationchange\":{}}},\"orientation\":2,\"bubbles\":false,\"cancelBubble\":false}\r\n{code}\r\nThen rotating into Lanscape results in the following:\r\n{code}\r\n[INFO] orientation change...\r\n[INFO] {\"type\":\"orientationchange\",\"source\":{\"landscape\":false,\"bubbleParent\":true,\"orientation\":1,\"apiName\":\"Ti.Gesture\",\"portrait\":true,\"_events\":{\"orientationchange\":{}}},\"orientation\":1,\"bubbles\":false,\"cancelBubble\":false}\r\n{code}\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Ti.Gesture orientation change is not always fired", "creator": { "name": "sschueller", "key": "sschueller", "displayName": "Stefan Schüller", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "sschueller", "key": "sschueller", "displayName": "Stefan Schüller", "active": true, "timeZone": "Europe/Berlin" }, "environment": "OSX: Yosemite 10.10.3 (14D136)\r\nTISDK: 4.1.0.GA\r\nGenymotion: 2.5.2\r\nImage: Samsung Galaxy S4 - 4.3 API 18 - 1080x1920", "closedSprints": [ { "id": 963, "state": "closed", "name": "2017 Sprint 22 SDK", "startDate": "2017-10-22T21:43:59.523Z", "endDate": "2017-11-05T22:43:00.000Z", "completeDate": "2017-11-06T16:33:42.425Z", "originBoardId": 114 }, { "id": 968, "state": "closed", "name": "2017 Sprint 23 SDK", "startDate": "2017-11-05T16:37:25.071Z", "endDate": "2017-11-19T16:37:00.000Z", "completeDate": "2017-11-20T18:57:56.565Z", "originBoardId": 114 }, { "id": 959, "state": "closed", "name": "2017 Sprint 21 SDK", "startDate": "2017-10-08T20:38:15.130Z", "endDate": "2017-10-22T20:38:00.000Z", "completeDate": "2017-10-24T23:55:56.605Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "358677", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "I confirm. May be related to TIMOB-18956", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2015-07-31T08:55:35.000+0000", "updated": "2015-07-31T09:38:40.000+0000" }, { "id": "367726", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "Also 5.0.2 not only Alloy but in Genymotion only\r\nTo test run KitchenSink:\r\nBASE UI -> Views -> List View -> Default Template\r\n", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2015-10-24T14:26:47.000+0000", "updated": "2015-10-24T14:26:47.000+0000" }, { "id": "372949", "author": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "body": "Any update on this? I have the same issue in Ti SDK 5.1.0.GA, non-Alloy project.", "updateAuthor": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "created": "2015-12-15T04:05:05.000+0000", "updated": "2015-12-15T04:05:05.000+0000" }, { "id": "372953", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-12-15T04:09:14.000+0000", "updated": "2015-12-15T04:09:14.000+0000" }, { "id": "428608", "author": { "name": "arif", "key": "arif", "displayName": "Arjan", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "This problem is still present and a pain in the ass, any update on this?\r\n\r\nWorking on SDK 6.2.2.GA. Clean Alloy project. Happens in EVERY simulator.\r\n\r\nScreencast: https://streamable.com/dhm5i\r\n\r\nAs you can see the first change isn't detected at all. After that the value is wrong (landscape is detected as portrait and visa versa).\r\n\r\nEDIT: also, switching from portrait to landscape (left/right) on a Samsung Tab 3 (Android 4.4.2) causes very inconstistant results:\r\n\r\n[ERROR] : {\"type\":\"orientationchange\",\"source\":{\"landscape\":true,\"portrait\":false,\"orientation\":1,\"apiName\":\"Ti.Gesture\",\"bubbleParent\":true,\"_events\":{\"orientationchange\":{}}},\"orientation\":1,\"bubbles\":false,\"cancelBubble\":false}\r\n[ERROR] : {\"type\":\"orientationchange\",\"source\":{\"landscape\":true,\"portrait\":false,\"orientation\":2,\"apiName\":\"Ti.Gesture\",\"bubbleParent\":true,\"_events\":{\"orientationchange\":{}}},\"orientation\":2,\"bubbles\":false,\"cancelBubble\":false}\r\n[ERROR] : {\"type\":\"orientationchange\",\"source\":{\"landscape\":false,\"portrait\":true,\"orientation\":1,\"apiName\":\"Ti.Gesture\",\"bubbleParent\":true,\"_events\":{\"orientationchange\":{}}},\"orientation\":1,\"bubbles\":false,\"cancelBubble\":false}\r\n[ERROR] : {\"type\":\"orientationchange\",\"source\":{\"landscape\":false,\"portrait\":true,\"orientation\":4,\"apiName\":\"Ti.Gesture\",\"bubbleParent\":true,\"_events\":{\"orientationchange\":{}}},\"orientation\":4,\"bubbles\":false,\"cancelBubble\":false}", "updateAuthor": { "name": "arif", "key": "arif", "displayName": "Arjan", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2017-09-29T18:05:16.000+0000", "updated": "2017-09-29T18:12:46.000+0000" }, { "id": "429011", "author": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/9525", "updateAuthor": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "created": "2017-10-12T13:55:41.000+0000", "updated": "2017-10-12T13:55:41.000+0000" }, { "id": "430108", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/9585", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-04T05:41:59.000+0000", "updated": "2017-11-04T05:41:59.000+0000" }, { "id": "430256", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for merge to get enabled to merge.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-07T23:41:33.000+0000", "updated": "2017-11-07T23:41:33.000+0000" }, { "id": "430632", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR merged.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-15T00:10:14.000+0000", "updated": "2017-11-15T00:10:14.000+0000" }, { "id": "430672", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Changes are seen in SDK 7.0.0.v20171114202841.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-15T06:21:56.000+0000", "updated": "2017-11-15T06:21:56.000+0000" } ], "maxResults": 17, "total": 17, "startAt": 0 } } }