{ "id": "97554", "key": "TIMOB-10018", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-07-18T20:51:02.000+0000", "created": "2012-07-18T05:12:07.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-10T19:10:25.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "This is not a regression. It occurs in 2.1.0 and 2.0.2 as well.\r\n\r\nFrom parent window, going to child window for the second time crashes the app.\r\nSteps to reproduce:\r\n1) Use the code below to make a sample app.\r\n{code}\r\nvar winMain = Ti.UI.createWindow({\r\n backgroundColor : 'white',\r\n fullscreen : true,\r\n});\r\n\r\nvar SecWin= Ti.UI.createWindow({\r\n backgroundColor : 'red',\r\n fullscreen : true,\r\n});\r\n\r\nvar ClickMe = Ti.UI.createButton({\r\n title : 'Click',\r\n backgroundColor:'orange',\r\n width : 60,\r\n height : 40\r\n});\r\n\r\nClickMe.addEventListener('click',function() {\r\n\t\tSecWin.backgroundColor = 'white';\r\n\t\tvar tableView = Ti.UI.createTableView();\r\n\t\t\r\n\t\tvar data = [];\r\n\t\t\r\n\t\tfor (var c=0;c<4;c++)\r\n\t\t{\r\n\t\t\tvar label = Ti.UI.createLabel({\r\n\t\t\t\ttext:'Header ' + (c+1),\r\n\t\t\t\tcolor:'black',\r\n\t\t\t\twidth:'auto',\r\n\t\t\t\theight: 'auto',\r\n\t\t\t\tleft:4\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tvar pinkHeader = Ti.UI.createView({backgroundColor: 'pink', height: 40});\r\n\t\t\tpinkHeader.add(label);\r\n\t\t\t\r\n\t\t\tdata[c] = Ti.UI.createTableViewSection({\r\n\t\t\t\theaderView: pinkHeader\r\n\t\t\t});\r\n\t\t\tfor (var x=0;x<10;x++)\r\n\t\t\t{\r\n\t\t\t\tdata[c].add(Ti.UI.createTableViewRow({title:'Group '+(c+1)+', Row '+(x+1)}));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttableView.data = data;\r\n\t\t\r\n\t\tSecWin.add(tableView);\r\n\t\tSecWin.open();\r\n});\r\n\r\n\r\nwinMain.add(ClickMe);\r\nwinMain.open();\r\n{code}\r\n\r\n2) Run the app.\r\n3) Click the button'Click'\r\n4) Press android 'back' button.\r\n5) Click the button'Click'\r\n\r\nExpected result:\r\n2) After step 2, a white window with a 'click' button should get displayed.\r\n3) The child window with pink header rows should get displayed.\r\n4) Earlier white parent window should get displayed.\r\n5) The child window should get displayed again.\r\n\r\nActual result:\r\n2) After step 2, a white window with a 'click' button gets displayed.\r\n3) The child window with pink header rows gets displayed.\r\n4) Earlier white parent window gets displayed.\r\n5) App is forced closed.", "attachment": [], "flagged": false, "summary": "Android:Tableview:Child window contains tableview.App crashes on second visit to child window from parent window.", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Titanium SDK: 2.1.1.v20120717154609\r\nTested with Titanium  Studio: 2.1.1.201207161421\r\nDevice - Android 2.2.2 LG-P970\r\nMachine OS - MAC 10.7.3", "comment": { "comments": [ { "id": "208428", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-10017 (pretty sad that TIMOB-10017 and TIMOB-10018 both were filed by the same filer).", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-18T20:51:02.000+0000", "updated": "2012-07-18T20:51:26.000+0000" }, { "id": "411294", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-10T19:10:25.000+0000", "updated": "2017-03-10T19:10:25.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }