{ "id": "170231", "key": "TIMOB-25483", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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:08:44.000+0000", "created": "2017-11-06T18:27:03.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "gesture", "orientation" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-15T06:20:05.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": "*Summary:*\r\nOn Android, the \"Ti.Gesture.orientation\" property and the \"orientationchange\" event currently only support orientations PORTRAIT, UPSIDE_PORTRAIT, LANDSCAPE_LEFT, and LANDSCAPE_RIGHT. We should also add support for FACE_UP and FACE_DOWN like iOS and Windows Phone for feature parity.\r\n\r\n*Test Procedure:*\r\n\r\n# Build and run the below on a physical Android device. (Cannot be tested via emulator.)\r\n# Lay the android device flat on a table with the screen facing up towards the sky.\r\n# Verify that the app displays \"Face Up\" onscreen.\r\n# Lift the device above your head, with the screen facing straight down towards the Earth.\r\n# Verify that the app display \"Face Down\" onscreen.\r\n\r\n*Test Code:*\r\n\r\n{code:javascript}\r\nfunction getNameFromOrientationId(orientationId) {\r\n\tswitch (orientationId) {\r\n\t\tcase Ti.UI.PORTRAIT:\r\n\t\t\treturn \"Portrait Upright\";\r\n\t\tcase Ti.UI.UPSIDE_PORTRAIT:\r\n\t\t\treturn \"Portrait Upside-Down\";\r\n\t\tcase Ti.UI.LANDSCAPE_LEFT:\r\n\t\t\treturn \"Landscape Left\";\r\n\t\tcase Ti.UI.LANDSCAPE_RIGHT:\r\n\t\t\treturn \"Landscape Right\";\r\n\t\tcase Ti.UI.FACE_UP:\r\n\t\t\treturn \"Face Up\";\r\n\t\tcase Ti.UI.FACE_DOWN:\r\n\t\t\treturn \"Face Down\";\r\n\t}\r\n\treturn \"Unknown\";\r\n}\r\nvar window = Ti.UI.createWindow(\r\n{\r\n\torientationModes: [Ti.UI.PORTRAIT],\r\n});\r\nvar label = Ti.UI.createLabel(\r\n{\r\n\ttext: getNameFromOrientationId(Ti.Gesture.orientation),\r\n});\r\nwindow.add(label);\r\nwindow.open();\r\nTi.Gesture.addEventListener(\"orientationchange\", function(e) {\r\n\tlabel.text = getNameFromOrientationId(e.orientation);\r\n});\r\n{code}\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Add FACE_UP/FACE_DOWN support to Ti.Gesture", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "430171", "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-06T18:28:30.000+0000", "updated": "2017-11-06T18:28:30.000+0000" }, { "id": "430259", "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:42:16.000+0000", "updated": "2017-11-07T23:42:16.000+0000" }, { "id": "430629", "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:08:44.000+0000", "updated": "2017-11-15T00:08:44.000+0000" }, { "id": "430669", "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:20:05.000+0000", "updated": "2017-11-15T06:20:05.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }