{ "id": "174678", "key": "TIMOB-27742", "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": "20949", "name": "Release 9.0.1", "archived": false, "released": true, "releaseDate": "2020-04-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-04-09T14:29:16.000+0000", "created": "2020-01-28T18:51:38.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "58433", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "175159", "key": "TIMOB-27967", "fields": { "summary": "Ti.Media Test Suite: Titanium.Media TIMOB-27742 Android Only", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-06-18T11:46:39.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": "- Camera should not crash with {{E/TiExceptionHandler: (main) [55,37938] autoFocus failed}}\r\n- Camera should continue to auto focus after taking a picture\r\n\r\n*TEST CASE*\r\n{code:js}\r\nconst overlay = Ti.UI.createView({});\r\nconst takePicture = Ti.UI.createButton({ title: 'Take Picture' });\r\n\r\ntakePicture.addEventListener('click', _ => {\r\n Ti.Media.takePicture();\r\n});\r\noverlay.add(takePicture);\r\n\r\nTi.Media.requestCameraPermissions(e => {\r\n if (e.success) {\r\n Ti.Media.showCamera({\r\n success: e => {\r\n if (e.success) {\r\n console.log('Taken picture successfully!');\r\n } else {\r\n console.error(JSON.stringify(e, null, 2));\r\n }\r\n },\r\n saveToPhotoGallery: true,\r\n autohide: false,\r\n overlay: overlay,\r\n mediaTypes: [ Ti.Media.MEDIA_TYPE_PHOTO ]\r\n });\r\n }\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Minor camera focus issues", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "453860", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/11454", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-28T19:03:37.000+0000", "updated": "2020-01-28T19:03:37.000+0000" }, { "id": "454844", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "9_0_X: https://github.com/appcelerator/titanium_mobile/pull/11562", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-24T21:38:44.000+0000", "updated": "2020-03-24T21:38:44.000+0000" }, { "id": "455052", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* Fix verified in SDK version 9.1.0.v20200406120646. and 9.0.1.v20200408050151.\r\n\r\nTested using: \r\n{code:java}\r\nconst overlay = Ti.UI.createView({});\r\nconst takePicture = Ti.UI.createButton({ title: 'Take Picture' });\r\n\r\ntakePicture.addEventListener('click', _ => {\r\n Ti.Media.takePicture();\r\n});\r\noverlay.add(takePicture);\r\n\r\nfunction showCamera(e) {\r\n Ti.Media.showCamera({\r\n success: e => {\r\n if (e.success) {\r\n console.log('Taken picture successfully!');\r\n } else {\r\n console.error(JSON.stringify(e, null, 2));\r\n }\r\n },\r\n saveToPhotoGallery: true,\r\n autohide: false,\r\n overlay: overlay,\r\n mediaTypes: [ Ti.Media.MEDIA_TYPE_PHOTO ]\r\n });\r\n}\r\n\r\nif (Ti.Media.hasCameraPermissions()) {\r\n showCamera();\r\n} else {\r\n Ti.Media.requestCameraPermissions(e => {\r\n if (e.success) {\r\n showCamera();\r\n }\r\n });\r\n}\r\n\r\n{code}\r\n\r\nTest and other information can be found at:\r\nmaster: https://github.com/appcelerator/titanium_mobile/pull/11454\r\n9_0_X: https://github.com/appcelerator/titanium_mobile/pull/11562", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-09T14:29:06.000+0000", "updated": "2020-04-09T14:29:06.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }