[TIMOB-3100] Android: disable setting orientation to disable orientation
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T02:00:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.7.0 |
Components | Android |
Labels | android, feature, orientation, reported-1.6.0 |
Reporter | Opie Cyrus |
Assignee | Opie Cyrus |
Created | 2011-04-15T03:36:57.000+0000 |
Updated | 2011-04-17T02:00:55.000+0000 |
Description
When orientationModes are defined, do not allow setting Ti.UI.orientation to an orientation that is not listed in orientationModes.
Replacing
reported-1.6
tag with the standardreported-1.6.0
tag.(from [d55abb0d6cc6be9d8803239e7ebd028fdc1a3702]) [#3101 state:fixed-in-qa] [#3100 state:in-progress] update orientation mechanism to use tighter shift band
updated orientation mechanism to use tighter shift badn of +- 10 degrees off center of new orientation to cause orientation shift. Also updated logic to disable setting orientation to an orientation that is not listed in the orientationModes. #3100 is still in progress because it requires more discussion with iOS team during planning week to decide on a unified long term approach to manually setting orientation change.
https://github.com/appcelerator/titanium_mobile/commit/d55abb0d6cc6be9d8803239e7ebd028fdc1a3702"> https://github.com/appcelerator/titanium_mobile/commit/d55abb0d6cc6...
(from [24c9f9d79971d07b84a9bec1e278efe0f15422b4]) [#3100 state:fixed-in-qa] [#3101 state:fixed-in-qa] updated orientation mechanism to correctly check for valid orientation
change logic for checking valid orientation. also included fix for handling setting orientation when current orientation is not valid.
https://github.com/appcelerator/titanium_mobile/commit/24c9f9d79971d07b84a9bec1e278efe0f15422b4"> https://github.com/appcelerator/titanium_mobile/commit/24c9f9d79971...
need test media
This fix can be verified via the orientation test in KS.
Once you click on "Allow Landscape only" you should not see any orientation change when clicking on "Set Landscape" or "Set Portrait". Previously, you would see the orientation shift briefly before switching back to the "locked" orientation.
Tested with Titanium SDK version: 1.7.0 (03/08/11 16:37 40e54ac) on
Nexus one 2.2.2
Galaxy Tablet 2.2