{ "id": "82097", "key": "TIMOB-5900", "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": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" }, { "id": "12571", "description": "CI for 1_7_X", "name": "Release 1.7.6", "archived": true, "released": false }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-22T11:17:56.000+0000", "created": "2011-10-28T12:50:08.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_media", "qe-testadded" ], "versions": [ { "id": "11971", "description": "iOS5 and select Android fixes", "name": "Release 1.7.3", "archived": true, "released": true, "releaseDate": "2011-10-18" } ], "issuelinks": [ { "id": "23170", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "105645", "key": "TIMOB-11887", "fields": { "summary": "Android: Media - Application crashes on Motorola RAZR i ", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:19.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "If you open the camera or a photo gallery from a modal window, when you close this window, titanium also closes the modal window. This does not happen on iOS4.\r\n\r\nTo reproduce, load app on device, click 'Launch Modal\", then click \"Camera\", take a picture and click \"Use\". Image should appear on the screen under the \"Camera\" button on the \"Modal\" window. This works on iOS 4 devices.\r\n\r\n{code:title = app.js}\r\nvar win1 = Ti.UI.createWindow(\r\n{\r\n title: \"window 1\"\r\n});\r\n\r\nvar button1 = Titanium.UI.createButton(\r\n{\r\n color: '#999',\r\n title: 'Launch Modal',\r\n width: '200dp',\r\n height: '60dp'\r\n});\r\n\r\nwin1.add(button1);\r\n\r\nbutton1.addEventListener(\"click\", function()\r\n{\r\n modal = Ti.UI.createWindow(\r\n {\r\n modal: true,\r\n title: \"modal\"\r\n });\r\n\r\n var cameraButton = Ti.UI.createButton(\r\n {\r\n title: \"camera\",\r\n top: \"50dp\",\r\n width: \"150dp\",\r\n height: \"60dp\"\r\n });\r\n modal.add(cameraButton);\r\n imageViewResize = Ti.UI.createImageView(\r\n {\r\n top: \"200dp\",\r\n height: \"200dp\",\r\n width: \"200dp\"\r\n });\r\n modal.add(imageViewResize);\r\n\r\n cameraButton.addEventListener(\"click\", function()\r\n {\r\n Titanium.Media.showCamera(\r\n {\r\n success: function(event)\r\n {\r\n imageViewResize.image = event.media;\r\n },\r\n\r\n error: function()\r\n {\r\n },\r\n\r\n cancel: function()\r\n {\r\n },\r\n\r\n saveToPhotoGallery: true,\r\n allowEditing: true,\r\n mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO],\r\n showControls: true\r\n });\r\n });\r\n modal.open();\r\n});\r\n\r\nwin1.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS5: Closing camera or gallery closes modal", "creator": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 5 Device", "comment": { "comments": [ { "id": "172051", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull request #657 pending.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-09T10:29:01.000+0000", "updated": "2011-11-09T10:29:01.000+0000" }, { "id": "172090", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Come 'n get it. http://builds.appcelerator.com.s3.amazonaws.com/index.html Reresolving as it's in place now.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-09T16:25:57.000+0000", "updated": "2011-11-09T16:25:57.000+0000" }, { "id": "173189", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pass: Tested with 1.8.0.1.v20111116185058 on\r\niPad 2 4.3.5\r\niPod Touch 4.02\r\niPhone 4s 5.0", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-17T16:01:17.000+0000", "updated": "2011-11-17T16:01:17.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }