[TIMOB-3101] Android: change rotation behavior to require a stronger shift in angle
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-05-16T15:04:45.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint-2011-09 |
Components | Android |
Labels | android, defect, orientation, release-1.7.0, reported-1.6.0, rotation |
Reporter | Opie Cyrus |
Assignee | Opie Cyrus |
Created | 2011-04-15T03:37:00.000+0000 |
Updated | 2011-05-16T15:04:45.000+0000 |
Description
Currently, when orientation is manually set to an orientation
that doesn't match the current physical orientation it can switch
back to the physical orientation almost immediately. This is due to
the check for orientation changing whenever the orientation degree
changes slightly.
We should change this behavior to only actually change the orientation if there is a 45+ degree change from the current orientation.
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...
Moving back to in-progress due to odd behavior noted.
(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...
Verified visually (and assisted by the KS accelerometer test output)that orientation change occurs at approx 66 degrees off vertical. Verified on Droid 2.2.1 and Nexus S 2.3.2. Closing.