Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9643] Android: Opening a LW window inside a "close" event handler does not work

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-11-06T23:10:41.000+0000
Affected Version/sRelease 2.0.0, Release 2.1.0, Release 2.0.1
Fix Version/s2012 Sprint 23 API, 2012 Sprint 23
ComponentsAndroid
Labelsapi
ReporterHieu Pham
AssigneeHieu Pham
Created2012-06-19T14:55:32.000+0000
Updated2013-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.

Comments

  1. Hieu Pham 2012-11-06

    This works fine in 3.0.X and master.
  2. Dhirendra Jha 2013-05-09

    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.

JSON Source