Description
*This is not a regression*
When using the code below and navigating back from the opened window, the tabgroup in the initial view disappears and only the green window remains
var win = Ti.UI.createWindow({ backgroundColor: 'green'});
var win2 = Ti.UI.createWindow({ backgroundColor: 'pink'});
var tabGroup = Ti.UI.createTabGroup();
var acceptanceTab = Titanium.UI.createTab({
title : 'Acceptance',
window : win
});
var aboutTab = Titanium.UI.createTab({
title : 'About'
});
tabGroup.addTab(acceptanceTab);
tabGroup.addTab(aboutTab);
var tableData = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ];
var table = Ti.UI.createTableView({
data: tableData
});
win.add(table);
table.addEventListener('click', function(){
win2.open();
});
tabGroup.open();
Steps to reproduce
Add the code above to an existing app.js
Tap a tableview row
Press the Windows back button
Actual result
The tabgroup disappears
Expected result
Tabgroup should not disappear
https://github.com/appcelerator/titanium_mobile_windows/pull/897
Verified fix, was able to see the tab group after navigating back from an open window. *Environment*