[TIMOB-9643] Android: Opening a LW window inside a "close" event handler does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-11-06T23:10:41.000+0000 |
Affected Version/s | Release 2.0.0, Release 2.1.0, Release 2.0.1 |
Fix Version/s | 2012 Sprint 23 API, 2012 Sprint 23 |
Components | Android |
Labels | api |
Reporter | Hieu Pham |
Assignee | Hieu Pham |
Created | 2012-06-19T14:55:32.000+0000 |
Updated | 2013-11-07T18:50:07.000+0000 |
Description
Test Case:
var win = Ti.UI.createWindow({backgroundColor: 'red'});
var button = Ti.UI.createButton({title: 'click me'});
button.addEventListener('click', function() {
var t_win = Ti.UI.createWindow({fullscreen:true});
t_win.addEventListener('close', function() {
var win2 = Ti.UI.createWindow({backgroundColor: 'blue'});
win2.open();
});
t_win.open();
});
win.add(button);
win.open();
1. Click on button
2. Click back button. Now we should see a blue window, but we don't.
This works fine in 3.0.X and master.
Verified this issue using the above code. Now shows the blue window on tapping back key. Tested with Appcelerator Studio build: 3.1.1.201305072102 Titanium SDK version: 3.1.0 (GA), 3.1.1.v20130508001914 Device: Samsung Galaxy (v2.3.6) Hence closing this issue.