Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3101] Android: change rotation behavior to require a stronger shift in angle

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-05-16T15:04:45.000+0000
Affected Version/sn/a
Fix Version/sSprint-2011-09
ComponentsAndroid
Labelsandroid, defect, orientation, release-1.7.0, reported-1.6.0, rotation
ReporterOpie Cyrus
AssigneeOpie Cyrus
Created2011-04-15T03:37:00.000+0000
Updated2011-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.

Comments

  1. Don Thorp 2011-04-15

    Replacing reported-1.6 tag with the standard reported-1.6.0 tag.

  2. Opie Cyrus 2011-04-15

    (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...

  3. Opie Cyrus 2011-04-15

    Moving back to in-progress due to odd behavior noted.

  4. Opie Cyrus 2011-04-15

    (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...

  5. Eric Merriman 2011-05-16

    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.

JSON Source