Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1470] Android: Window Closed with Back Button Won't Reopen

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:56:15.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsandroid, defect
ReporterDon Thorp
AssigneeDon Thorp
Created2011-04-15T02:53:43.000+0000
Updated2011-04-17T01:56:15.000+0000

Description

If a heavyweight window is closed via back instead of close, it won't reopen

var win = Titanium.UI.createWindow({backgroundColor: 'black'});
var win2 = Ti.UI.createWindow({backgroundColor: 'blue'});
 
var btn = Ti.UI.createButton({title: 'open win'});
btn.addEventListener('click', function(){
    win2.open({navBarHidden: true});
    win2.addEventListener('click', function(){win2.close()});
})
win.add(btn);
win.open();

Comments

  1. Don Thorp 2011-04-15

    (from [2ebb4412751cfbfa575843b84925cf2fb213cabe]) [#1470 state:fixed-in-qa] Opened flag wasn't getting set to false if closed from TiActivity with back button http://github.com/appcelerator/titanium_mobile/commit/2ebb4412751cfbfa575843b84925cf2fb213cabe"> http://github.com/appcelerator/titanium_mobile/commit/2ebb4412751cf...

  2. Thomas Huelbert 2011-04-15

    confirmed fixed 1.4.1
    Valid, needs testcase.

  3. Lukasz 2011-04-15

    I found similar problem, but this time with TabGroup instead Window. New ticket: https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/1742"> https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobi...

JSON Source