[TIMOB-3159] Android: Setting Orientation on Single window not recoginized
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-05-16T16:36:35.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 2.0.1 |
Components | Android |
Labels | qe-port |
Reporter | Alan Leard |
Assignee | Neeraj Gupta |
Created | 2011-04-15T03:38:19.000+0000 |
Updated | 2013-01-21T18:00:54.000+0000 |
Description
If you allow all orientation modes in the application but then set one window to a certain orientation, the orientation is not respected for that window.
Ticket Reference: http://developer.appcelerator.com/helpdesk/view/73831">http://developer.appcelerator.com/helpdesk/view/73831
Attachments
File | Date | Size |
---|---|---|
test.zip | 2011-04-15T03:38:20.000+0000 | 831448 |
Currently, there is a bug that prevents the orientation from being set correctly on the activity when set from the lightweight window. Ticket #3168 has been opened for the issue.
In order to bypass the issue for the time being, the window can be opened as a heavyweight window by using "fullscreen:true" or "modal:true". Another option is to set a reference to the parent heavyweight window on the child window. I have attached a test app to the ticket to demonstrate the second approach.
Actually, future updates and fixes for this problem will be associated with this ticket rather than #3168
Your solutions are a non-starter since if you load a heavyweight window from app.js, you get an extra blank window in the stack
Hi jj,
If your concern is the blank window when hitting back from your heavyweight window in app.js, you can add "exitOnClose: true" to the creation args when you create the window from app.js and you should no longer see the blank window when exiting the app.
Thanks
Opie
Not able to reproduce with 2.0 and 2.1 CI builds. Closing.
Tested with: Titanium Studio, build: 3.0.1.201212181159 Titanium SDK, build: 3.0.2.v20130118180632 Device: HTC-EVO Android version 4.0.3 Closing