[TIMOB-9464] Android: Orientation: Screen does not restrict to orientation modes supported in app.js
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2017-10-31T20:37:29.000+0000 |
Affected Version/s | Release 2.1.0, Release 3.1.0 |
Fix Version/s | n/a |
Components | Android |
Labels | core, qe-and060112 |
Reporter | Satyam Sekhri |
Assignee | Eric Merriman |
Created | 2012-06-08T06:01:16.000+0000 |
Updated | 2017-10-31T20:37:29.000+0000 |
Description
On Android platform, the application screen shows up even in those orientation mode that are not supported for the application.
This is not a regression. This issue occurs as far back as 1.8.2
Steps to reproduce:
1. Create a mobile application with the code below
2. Launch the application with device in portrait
3. Hold device so top is pointing left
4. Hold device upside down
5. Hold device so top is pointing right
Actual Result:
After step 4, on galaxy tab the screen in shown in upside down orientation mode
After step 5, the screen is shown in Landscape left mode
Both Upside down and Landscape left are not supported modes for this application
Expected Result:
1. After step 2, the screen should be in portrait mode
2. For all further steps, the screen should be in Landscape right mode
App.js
var win = Ti.UI.createWindow({
backgroundColor:'white'
});
var label = Ti.UI.createLabel({
text:'Appcelerator',
height:'auto',
width:'auto',
color:'#900',
font:{fontSize:24},
textAlign:'center'
});
win.add(label);
win.orientationModes = [
Ti.UI.PORTRAIT,
Ti.UI.LANDSCAPE_RIGHT
];
win.open();
Issue reproduces with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) Device: Samsung galaxy s duos Android version: 4.0.4
Closing as duplicate. See [TIMOB-10070].