{ "id": "83638", "key": "TIMOB-6593", "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": [ { "id": "12090", "description": "", "name": "Sprint 2011-50", "archived": true, "released": true, "releaseDate": "2011-12-19" }, { "id": "12571", "description": "CI for 1_7_X", "name": "Release 1.7.6", "archived": true, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-12-14T18:31:55.000+0000", "created": "2011-12-12T17:29:40.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "12571", "description": "CI for 1_7_X", "name": "Release 1.7.6", "archived": true, "released": false } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:07.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": "h4. Issue\r\nIf I use the attribute \"navBarHidden\" for any window in a tabgroup, upon closing them, the main window freezes and no event are generated.\r\n\r\nh4. Reproduce Steps\r\n- Click on the \"click to open another window\" label\r\n- Click on the \"Open final window\" label\r\n- Click on the \"Close All windows until tab main window\" label\r\n- Try to click again the \"Click to open another window\" label , not works\r\n\r\n\r\nh4. Code\r\n{code}\r\n\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'Click to open another window',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\n\r\n\r\n\r\n\t\t\tvar win11 = Titanium.UI.createWindow({\r\n\t\t\t\tbackgroundColor:'white',\r\n\t\t\t\tbarColor:'#ff7b01',\r\n\t\t\t\ttabBarHidden:false,\r\n\t\t\t\ttop:0,\r\n\t\t\t\ttitle : 'win11',\r\n\t\t\t});\r\n\r\nlabel1.addEventListener('click', function() {\r\n\twin11.open();\r\n});\r\n\r\n\r\n\r\nvar label11 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'open final window',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\nwin11.add(label11);\r\n\r\n\r\n\r\n\t\t\tvar win12 = Titanium.UI.createWindow({\r\n\t\t\t\tbackgroundColor:'white',\r\n\t\t\t\tbarColor:'#ff7b01',\r\n\t\t\t\ttabBarHidden:true,\r\n\t\t\t\ttop:0,\r\n\t\t\t\ttitle : 'win12',\r\n\t\t\t\tnavBarHidden:true,\r\n\t\t\t});\r\nlabel11.addEventListener('click', function() {\r\n\twin12.open();\r\n});\r\n\r\n\r\n\r\nvar label12 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'Close all windows until tab main window',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\n\r\nwin12.add(label12);\r\n\r\n\r\n\r\n\r\nlabel12.addEventListener('click', function() {\r\n\twin12.close();\r\n\twin11.close();\r\n});\r\n\r\n\r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n\r\n{code}\r\n\r\n\r\nh4. Working on 1.8.0.1\r\nIt's working good on 1.8.0.1 but i didn't find a jira bug related with this issue", "attachment": [ { "id": "24586", "filename": "app3.js", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2011-12-12T17:29:40.000+0000", "size": 2154, "mimeType": "text/javascript" } ], "flagged": false, "summary": "Android: Window.close() on windows with \"navBarHidden\" attribute causes freezing events", "creator": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "subtasks": [], "reporter": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "environment": "Titanium SDK version: 1.7.5 / 1.7.6\r\nPlatform OS: Android\r\nPlatform OS Version: 2.2\r\nDevice Details: android Emulator \r\nHost Operating System: OSX 10.7.2\r\nTitanium Studio Build 1.0.6.201110251616", "comment": { "comments": [ { "id": "179831", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "closing", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-18T17:35:41.000+0000", "updated": "2012-01-18T17:35:41.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }