{ "id": "63101", "key": "TIMOB-2469", "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": "11240", "name": "Release 1.6.0 M07", "archived": true, "released": true, "releaseDate": "2011-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:11.000+0000", "created": "2011-04-15T03:20:35.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "orientation", "regression", "release-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:59:11.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": "{html}

Titanium SDK version: 1.5.0 (11/29/10 08:10 faa27c7). G2 (2.2)\nsome G1 (1.6) some droid 1 (2.2) and a bit of sim (2.1)

\n

change in behavior since last weeks 1.5.0.591838a pull

\n

1.Phone > orientation
\n2.hold it in portrait
\n3.Tap \"allow landscape only\"
\n4.tap \"set portrait\"

\n

results (you may need to repeat this once if you don't see it\nfirst time, it is a little bit intermittent) the app briefly draws\nin portrait, then returns to landscape. broke between 1.5.0.591838a\nand now

{html}", "attachment": [], "flagged": false, "summary": "Android: orientation - unexpected results for \"set portrait\" after setting \"allow landscape only\" ", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128553", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hrm.. this is similar to the way the iPhone test works. \"Set\nPortrait\" works as long as you don't rotate back to landscape (or\nnear it). Once rotated back, the lock goes back into effect. The\nsensor sensitivity might be a little high for the switch back..\nthoughts?

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:20:36.000+0000", "updated": "2011-04-15T03:20:36.000+0000" }, { "id": "128554", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hey Marshall, I omitted some important info - how you hold the\nphone will affect this test. If you lay the phone on a flat surface\n(in portrait) you won't see it flash to portrait then back to\nlandscape. If you hold it up in portrait, when do step 4 you should\nsee it briefly draw in portrait before it draws in landscape again.\nsorry for the missing steps.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:20:36.000+0000", "updated": "2011-04-15T03:20:36.000+0000" }, { "id": "128555", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

Logic in TiBaseActivity.onOrientationChanged was wiping out info\nabout the orientation \"override\" -- an orientation that is not one\nof the \"allowable\" but is set explicitly. That's the use case\ndescribed in this ticket: setting \"landscape only\" then explicitly\nsetting to portrait. That information about the explicit set to\nportrait was being wiped out as soon as you move the device while\nin portrait. Thereafter, any further move inside portrait would\nlook like it's not allowable and therefore get flipped to landscape\n(the allowable).

\n

Hard to explain. But with this fix, it doesn't jerk back to\nlandscape (as was the fail case) right when you move it. Instead it\nwaits until it actually is landscape (when tilting toward the left;\napparently we don't support tilting toward the right in this\narrangement.)

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:20:38.000+0000", "updated": "2011-04-15T03:20:38.000+0000" }, { "id": "128556", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [ba41eca7d89e0a7db6183b2d5556abd194ef4a9a])\n[#2469 state:fixed-in-qa] don't wipe out\ninformation about an 'override' orientation until an allowable\norientation is reached. \nhttps://github.com/appcelerator/titanium_mobile/commit/ba41eca7d89e...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:20:38.000+0000", "updated": "2011-04-15T03:20:38.000+0000" }, { "id": "128557", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

verified 2.2 on droid2

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:20:39.000+0000", "updated": "2011-04-15T03:20:39.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }