{ "id": "79233", "key": "TIMOB-5002", "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": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-02-10T00:33:26.000+0000", "created": "2011-08-15T08:49:10.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-testadded", "regression" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "12673", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "63763", "key": "TIMOB-3131", "fields": { "summary": "Android: setting orientation mode in tiapp.xml", "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": "Trivial", "id": "5" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "14298", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "84087", "key": "TIMOB-6783", "fields": { "summary": "Android: AndroidManifest - V8 and Rhino, modifying custom AndroidManifest does not copy to real AndroidManifest during build time", "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": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updated": "2012-02-10T00:33:26.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": "setting android:screenOrientation for an activity in AndroidManifest.xml does not work with 1.7.2 but it does with 1.6.2\r\n\r\nStep 1: run the code below\r\nStep 2: use a custom AndroidManifest.xml (documented in the wiki)\r\nStep 3: add android:screenOrientation=\"portrait\" to the TiTabActivity in the AndroidManifest.xml \r\n{code:title=\"AndroidManifest.xml\"}\r\n\r\n{code}\r\nStep 4: launch the app\r\nStep 5: rotate the device\r\nStep 6: notice that the tabGroup does not rotate if you run this in 1.6.2 but it does rotate in 1.7.2\r\n\r\n{code:title=\"app.js\"}\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\nwin2.add(label2);\r\n\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\ntabGroup.open();\r\n{code}\r\n\r\nh4. Workaround\r\nUse the orientationModes property of window\r\n{code}\r\nwin2.orientationModes = [\r\n\t\t\tTitanium.UI.PORTRAIT\r\n\t\t]; \r\n{code}\r\n\r\nh4. Associated Helpdesk Ticket\r\nhttp://appc.me/c/APP-688371", "attachment": [ { "id": "22847", "filename": "TiTest.zip", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-09-07T12:37:47.000+0000", "size": 7935433, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: setting android:screenOrientation for an activity in AndroidManifest.xml does not work", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "h4. Working\r\nTiSDK 1.6.2\r\nAndroid Emulator 2.2\r\n\r\nh4. Not working\r\nTiSDK 1.7.2\r\nAndroid Emulator 2.2", "comment": { "comments": [ { "id": "162820", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tried removing android:configChanges=\"keyboardHidden|orientation\" from the tag. It had no affect on the rotation not working.\r\n\r\n{code}\r\n\r\n{code}", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-15T09:38:06.000+0000", "updated": "2011-08-15T09:38:06.000+0000" }, { "id": "165268", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "Attaching test app that shows overriding the orientation mode in the tiapp.xml", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-09-07T12:37:47.000+0000", "updated": "2011-09-07T12:37:47.000+0000" }, { "id": "176665", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening bug. Bug persists on:\r\n\r\nSDK build: 1.8.0.1.RC3\r\nRuntime: V8, Rhino\r\nTitanium Studio, build: 1.0.7.201112152014\r\nDevice: Android Emulator 2.2, Nexus One (2.2.2)\r\nOS: Mac OS X Lion\r\n\r\nNote: To test the custom AndroidManifest:\r\n1. Create a *platform* folder at the same level as Resource\r\n2. Create an *android* folder in the *platform* folder\r\n3. Add the AndroidManifest.xml to the *android* folder", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-12-19T18:43:27.000+0000", "updated": "2011-12-19T19:16:35.000+0000" }, { "id": "177914", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "Unable to reproduce the issue against 1.9.0 with the following AndroidManifest.xml put in the platform/android location.\r\n\r\n{code}\r\n\r\n\r\n\t\r\n\r\n\t\r\n\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\r\n\t\t\r\n\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\t\r\n\t\t\r\n\r\n\t\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n{code}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2012-01-03T17:26:34.000+0000", "updated": "2012-01-03T17:26:34.000+0000" }, { "id": "180369", "author": { "name": "apsylone", "key": "apsylone", "displayName": "Benjamin Jeanjean", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This works with 1.9.0 but not 1.7.5\r\nJust tested with your AndroidManifest.xml Opie.", "updateAuthor": { "name": "apsylone", "key": "apsylone", "displayName": "Benjamin Jeanjean", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-23T19:00:12.000+0000", "updated": "2012-01-23T19:00:12.000+0000" }, { "id": "182636", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "closing as we are not able to reproduce using master (1.9.0 Feb 9 2012 09:46 rd47ce8a4). fix will not be seen in 1.7.X branches", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-09T14:01:46.000+0000", "updated": "2012-02-09T14:01:46.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }