Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3100] Android: disable setting orientation to disable orientation

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T02:00:55.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.7.0
ComponentsAndroid
Labelsandroid, feature, orientation, reported-1.6.0
ReporterOpie Cyrus
AssigneeOpie Cyrus
Created2011-04-15T03:36:57.000+0000
Updated2011-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.

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

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

  4. Natalie Huynh 2011-04-15

    need test media

  5. Opie Cyrus 2011-04-15

    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.

  6. Natalie Huynh 2011-04-15

    Tested with Titanium SDK version: 1.7.0 (03/08/11 16:37 40e54ac) on
    Nexus one 2.2.2
    Galaxy Tablet 2.2

JSON Source