{ "id": "117921", "key": "TIMOB-14751", "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": "15576", "description": "2013 Sprint 16", "name": "2013 Sprint 16", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "15578", "description": "2013 Sprint 16 API", "name": "2013 Sprint 16 API", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-08-02T22:09:57.000+0000", "created": "2013-08-02T09:16:28.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_window", "qe-3.1.2", "qe-closed-3.1.2", "qe-testadded", "regression" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [ { "id": "32029", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "120192", "key": "TIMOB-15280", "fields": { "summary": "Android: can't reopen tab group", "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": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-09-19T21:26: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": "Note - This is a regression. Issue is not reproducible in 3.1.1.GA build.\n\nSteps - \n1. Run the below app. \n2. Press the \"Press me\" button. A new modal window is displayed.\n3. Press the \"close\" button.\n\nActual Result - Does not happen anything. It seems that Close button is not tappable.\n\nExpected Result - On Close button, model window should close.\n\nNote - In the below code, there are two win.open() methods. Above code is working fine in 3.1.1.GA build and it fails in 3.1.2.v20130801190110 build. If we remove one win.open() method then the same code works fine in 3.1.1.GA and 3.1.2.v20130801190110 build. Please confirm the correct behavior according to new window architecture change for Android.\n\n{code}\nvar _window = Ti.UI.createWindow({\n\tbackgroundColor: 'white',\n});\n\t\t\nvar button = Ti.UI.createButton({\n\ttitle : 'Press me'\n});\nbutton.addEventListener('click', function() {\n\tvar button2 = Ti.UI.createButton({\n\ttitle : 'close'\n});\n\tvar win = Ti.UI.createWindow({\n\tmodal : true,\n\tbackgroundColor : '#c96'\n\t});\n\tbutton2.addEventListener('click', function() {\n\t\twin.close();\n\t});\n\twin.add(button2);\n\twin.open();\n\twin.open();\n});\n_window.add(button);\n_window.open();\n{code}", "attachment": [], "flagged": false, "summary": "Android: Modal window is not getting closed", "creator": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio: 3.1.2.201307311816\r\nTitanium SDK: 3.1.2.v20130801190110\r\nACS: 1.0.4\r\nAlloy: 1.2.0-alpha3\r\nNPM: 1.3.2\r\nTitanium: 3.1.2-alpha\r\nTitanium-code-processor: 1.0.2-alpha\r\nXcode - 4.6.3\r\nDevice - Nexus7 (Android v4.2.1), Samsung Galaxy (Android v2.3.6)", "comment": { "comments": [ { "id": "264792", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Additional test case: \r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'red'});\r\nvar tab = Ti.UI.createTab({window: win, title: \"Tab1\"});\r\nvar tabgroup = Ti.UI.createTabGroup();\r\nvar actionbar;\r\ntabgroup.addTab(tab);\r\n\r\nvar button = Ti.UI.createButton({title: 'list'});\r\n\r\n\r\nwin.add(button);\r\n\r\ntabgroup.open();\r\ntabgroup.open();\r\n{code}\r\n\r\n1. Run code.\r\n2. Should see a tabgroup, but instead it crashes.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-02T20:49:23.000+0000", "updated": "2013-08-02T20:49:53.000+0000" }, { "id": "264824", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4531", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-02T22:09:31.000+0000", "updated": "2013-08-02T22:09:31.000+0000" }, { "id": "264826", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/4531", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-02T22:11:17.000+0000", "updated": "2013-08-02T22:11:17.000+0000" }, { "id": "264831", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/4535", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-02T22:27:20.000+0000", "updated": "2013-08-02T22:27:20.000+0000" }, { "id": "265214", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested above code and verified correct behavior with:\nAppcelerator Studio, build: 3.1.2.201308021524\nTitanium SDK, build: 3.1.2.v20130806104555\nAlloy 1.2.0-alpha6\nCLI: 3.1.2-alpha\nDevices:\nNexus7(2) Android version 4.3\nGalaxyS3 Android version 4.0.4\n\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-06T21:44:30.000+0000", "updated": "2013-08-06T21:44:30.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }