[TIMOB-13874] BlackBerry : Orientation change does not work in sdk 3.1.1
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-05-28T22:36:42.000+0000 |
Affected Version/s | Release 3.1.1 |
Fix Version/s | 2013 Sprint 11 BB, 2013 Sprint 11, Release 3.1.1, Release 3.2.0 |
Components | BlackBerry |
Labels | qe-3.3.0, qe-testadded, sdk-bb |
Reporter | Lokesh Choudhary |
Assignee | Pedro Enrique |
Created | 2013-05-15T21:33:05.000+0000 |
Updated | 2014-05-28T22:37:15.000+0000 |
Description
This is a regression.It still works in our beta release sdk 3.2.0.v20130412191647
Description:
1. Create an app for BB with the following code
var win = Ti.UI.createWindow({
backgroundColor: 'green'});
win.orientationModes = [
Titanium.UI.PORTRAIT,
//Titanium.UI.UPSIDE_PORTRAIT,
Titanium.UI.LANDSCAPE_LEFT,
Titanium.UI.LANDSCAPE_RIGHT,
Titanium.UI.FACE_UP,
Titanium.UI.FACE_DOWN
];
var lbl = Ti.UI.createLabel({
text:'Orientation modes',
color:'white',
font:{fontSize:15}
});
win.add(lbl);
win.open();
Also, add the following permissions in the tiapp.xml
<blackberry>
<orientation>auto</orientation>
<permissions>
<permission>access_shared</permission>
<permission>record_audio</permission>
<permission>use_camera</permission>
<permission>access_internet</permission>
<permission>play_audio</permission>
<permission>post_notification</permission>
<permission>set_audio_volume</permission>
<permission>read_device_identifying_information</permission>
</permissions>
</blackberry>
2. Build & run for BB device
Actual Result:
1. The orientation does not change
Expected Result:
1. The orientation should change to the appropriate orientation as the device is rotated
Attachments
File | Date | Size |
---|---|---|
orientation_change.zip | 2013-05-20T23:17:55.000+0000 | 3829963 |
project attached.
Josh as you pointed out the auto orient in the bar xml file stays false for me.
If Chris can review the code change and someone setup for BlackBerry can perform the functional testing.
3_1_X pull request: https://github.com/appcelerator/titanium_mobile/pull/4314
Verified the fix & the orientation is working as expected. Thus closing the issue. Environment: Ti Studio : 3.1.1.201305150313 Ti BB SDK : 3.1.1.v20130522143723 Mac OSX : 10.8.2 win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88 Q10 Simulator : 10.1.0.1720 Q10 Dev alpha C device running 10.1.0.138
Re-open to fix labels.
Reopened Appcelerator Studio, build: 3.3.0.201405211748 Titanium SDK, build: 3.3.0.v20140524224144 Node.JS Version: v0.10.13 NPM Version: 1.3.2 acs@1.0.14 alloy@1.4.0-alpha4 npm@1.3.2 titanium@3.3.0-alpha5 titanium-code-processor@1.1.1 Device: BB Z10 (10.2.1) Orientation indicates portrait only even when device is rotated to landscape mode @[~penrique] I will close this ticket and reopen TIMOB-14011