[TIMOB-1470] Android: Window Closed with Back Button Won't Reopen
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:56:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | Android |
Labels | android, defect |
Reporter | Don Thorp |
Assignee | Don Thorp |
Created | 2011-04-15T02:53:43.000+0000 |
Updated | 2011-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();
(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...
confirmed fixed 1.4.1
Valid, needs testcase.
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...