Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6856] Android: Orientation modes return null after being previously set

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-03-11T22:29:12.000+0000
Affected Version/sRelease 1.8.0.1, Release 2.0.0
Fix Version/sSprint 2011-51, Release 2.0.0, Release 1.8.1
ComponentsAndroid
Labelsmodule_orientation, parity, qe-testadded
ReporterAllen Yeung
AssigneeAllen Yeung
Created2011-12-22T16:23:47.000+0000
Updated2012-03-11T22:29:12.000+0000

Description

Run the following app.js:
Titanium.UI.setBackgroundColor('#000');
var win = Titanium.UI.createWindow({  
    title:'Test',
    backgroundColor:'#000',
	exitOnClose: true
});

win.add(Ti.UI.createView({
	backgroundColor: "blue",
	borderColor: "red",
	borderWidth: 10,
	borderRadius: 5,
	left: "10dp",
	right: "10dp",
	top: "50dp",
	height: "200dp"
}));

win.open();

win.orientationModes = [Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT];

Ti.API.debug("-------------orientation modes = " + win.orientationModes);
Expected: Non-null orientation values Result: null value for orientation modes

Comments

  1. Wilson Luu 2012-01-12

    Closing bug. Verified fix on: SDK build: 1.9.0.v20120111233134 Runtime: V8, Rhino Titanium Studio, build: 1.0.8.201201111843 Device: Droid 3 (2.3.4)

JSON Source