[TIMOB-6856] Android: Orientation modes return null after being previously set
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-03-11T22:29:12.000+0000 |
| Affected Version/s | Release 1.8.0.1, Release 2.0.0 |
| Fix Version/s | Sprint 2011-51, Release 2.0.0, Release 1.8.1 |
| Components | Android |
| Labels | module_orientation, parity, qe-testadded |
| Reporter | Allen Yeung |
| Assignee | Allen Yeung |
| Created | 2011-12-22T16:23:47.000+0000 |
| Updated | 2012-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
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)