{ "id": "85010", "key": "TIMOB-7240", "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": "12095", "description": "", "name": "Sprint 2012-03", "archived": true, "released": true, "releaseDate": "2012-02-12" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-14T23:29:02.000+0000", "created": "2012-01-16T16:39:36.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_optiondialog", "qe-testadded", "regression" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "15164", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "86194", "key": "TIMOB-7572", "fields": { "summary": "Android: V8: Titanium.UI.TabGroup: opening tab group intermittently crashes app", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "15165", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "86195", "key": "TIMOB-7573", "fields": { "summary": "Android: Rhino: Titanium.UI.TabGroup: opening and closing new tab group in a cycle crashes app with null pointer exception", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-02-14T23:29:02.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. Problem Description\r\nTi.UI.OptionDialog can be called multiple times in SDK 1.8 without problems, but not after a TabGroup is opened and then closed. Happening on both v8 and rhino.\r\n\r\nh4. Steps to reproduce\r\n1. Add this code to a new mobile project \r\n{code}\r\nvar w = Ti.UI.createWindow({\r\n\tbackgroundColor: 'red',\r\n\tfullscreen: false,\r\n\texitOnClose: true\r\n});\r\n\r\nvar b = Ti.UI.createButton({\r\n\theight: 50,\r\n\ttitle: 'click'\r\n});\r\n\r\nb.addEventListener('click', function(e) {\r\n\tvar optDlg = Ti.UI.createOptionDialog({\r\n\t\ttitle: 'choose',\r\n\t\toptions: ['open', 'dismiss']\r\n\t});\r\n\r\n\toptDlg.addEventListener('click', function(e) {\r\n\t\tif (e.index===0) {\r\n\t\t\tvar t = Ti.UI.createTabGroup(),\r\n\t\t\t\tw1 = Ti.UI.createWindow({\r\n\t\t\t\t\ttitle: 'blue',\r\n\t\t\t\t\tbackgroundColor: 'blue'\r\n\t\t\t\t}),\r\n\t\t\t\tb1 = Ti.UI.createButton({\r\n\t\t\t\t\ttitle: 'close'\r\n\t\t\t\t}),\r\n\t\t\t\tt1 = Ti.UI.createTab({\r\n\t\t\t\t\ttitle: 'blue',\r\n\t\t\t\t\twindow: w1\r\n\t\t\t\t});\r\n\r\n\t\t\tw1.add(b1);\r\n\t\t\tb1.addEventListener('click', function(e){\r\n\t\t\t\tt.close();\r\n\t\t\t});\r\n\t\t\tt.addTab(t1);\t\r\n\t\t\tt.open();\r\n\t\t}\r\n\t});\r\n\r\n\toptDlg.show();\r\n\tTi.API.info('must be showing dlg');\r\n});\r\n\r\nw.add(b);\r\nw.open();\r\n{code}\r\n2. Click the button\r\n3. Select something. \r\n4. Close \r\n5. click open again\r\n\r\nh4. ACTUAL RESULTS\r\nThe openDialog doesn't open\r\n\r\nh4. EXPECTED RESULTS\r\nopenDialog should work.\r\n\r\nh4. MORE INFO\r\nIt's working fine in 1.7.5", "attachment": [], "flagged": false, "summary": "Android: OptionDialog can't be called several times after a tabgroup is opened and closed. ", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": null, "comment": { "comments": [ { "id": "182268", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopen this issue b/c the previous PR for this has a mistake - It didn't remove the tab activity properly when back key is hit. ", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-07T14:16:33.000+0000", "updated": "2012-02-07T14:16:33.000+0000" }, { "id": "182271", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "New PR https://github.com/appcelerator/titanium_mobile/pull/1369", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-07T14:20:02.000+0000", "updated": "2012-02-07T14:20:02.000+0000" }, { "id": "182296", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\nSDK: 1.9.0.v20120207124634\r\nStudio: 1.0.8.201201262211\r\nOS: Lion\r\nDevices Tested: Android Emulator 2.2, Xoom 3.2.1", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-07T15:58:40.000+0000", "updated": "2012-02-07T15:58:40.000+0000" }, { "id": "182298", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening based on Hieu's latest comments.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-07T16:05:15.000+0000", "updated": "2012-02-07T16:05:15.000+0000" }, { "id": "182312", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "crash occurred during testing after opening and closing the dialog and window roughly 3-6 times. Repeatable.\r\n\r\nCrash log: http://pastie.org/3338185", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2012-02-07T16:47:50.000+0000", "updated": "2012-02-07T16:47:50.000+0000" }, { "id": "182907", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "see test comments from Opie.", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-13T08:11:36.000+0000", "updated": "2012-02-13T08:11:36.000+0000" }, { "id": "182961", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-13T13:45:07.000+0000", "updated": "2012-02-13T13:45:07.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }