{ "id": "170675", "key": "TIMOB-25633", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "20950", "name": "Release 9.1.0", "archived": false, "released": true, "releaseDate": "2020-08-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-08-14T18:10:01.000+0000", "created": "2017-12-23T21:17:48.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "back", "camera" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-08-14T18:10:01.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": "*Summary:*\r\nWhen showing a camera overlay on Android (ie: use camera in-app instead of 3rd party camera app), you are unable to override the Back button. We should support his by adding a new \"androidback\" callback property like this.\r\n\r\n\r\n{code:javascript}\r\nTi.Media.showCamera({\r\n\toverlay: Ti.UI.createView(),\r\n\tandroidback: function() {\r\n\t\t// This callback only applies when using \"overlay\" property.\r\n\t\t// Back button won't close camera window unless you hide it yourself.\r\n\t\t// Ti.Media.hideCamera();\r\n\t}\r\n});\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Add \"androidback\" callback property to camera overlay", "creator": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android", "comment": { "comments": [ { "id": "432546", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Can you create a PR and assign to this ticket?", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-12-24T21:53:11.000+0000", "updated": "2017-12-24T21:53:11.000+0000" }, { "id": "432563", "author": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "body": "I have created a new version of TiCameraActivity.java. In core this updated function:\r\n\r\n@Override\r\n\tpublic void onBackPressed() {\r\n\t\tif (androidbackCallback != null) {\r\n\t\t\tKrollDict response = new KrollDict();\r\n\t\t\tresponse.putCodeAndMessage(-1, \"User pressed androidback\");\r\n\t\t\tandroidbackCallback.callAsync(callbackContext, response);\r\n\t\t} else {\r\n\t\t\tif (cancelCallback != null) {\r\n\t\t\t\tKrollDict response = new KrollDict();\r\n\t\t\t\tresponse.putCodeAndMessage(-1, \"User cancelled the request\");\r\n\t\t\t\tcancelCallback.callAsync(callbackContext, response);\r\n\t\t\t}\r\n\t\t\tsuper.onBackPressed();\r\n\t\t}\r\n\t} \r\n\r\nNow I try to PR this both files (+ MediaModule.java)", "updateAuthor": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-12-27T19:17:15.000+0000", "updated": "2017-12-27T19:17:15.000+0000" }, { "id": "432565", "author": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "body": "Changes:\r\n\r\nModifying 'onBackPressed' callback in Ti.CameraActivity and some little modifications in module (adding callback)", "updateAuthor": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-12-27T21:00:26.000+0000", "updated": "2017-12-27T21:00:26.000+0000" }, { "id": "432574", "author": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "body": "Unfort. I have linted the source code, I hope the PR can still be done.", "updateAuthor": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-12-28T09:56:45.000+0000", "updated": "2017-12-28T09:56:45.000+0000" }, { "id": "451920", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "new PR: https://github.com/appcelerator/titanium_mobile/pull/11270", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-10-09T12:23:44.000+0000", "updated": "2019-10-09T12:23:44.000+0000" }, { "id": "455299", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, waiting on Jenkins build.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-29T14:49:45.000+0000", "updated": "2020-04-29T14:49:45.000+0000" }, { "id": "455305", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master for 9.1.0 target", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-04-29T17:55:30.000+0000", "updated": "2020-04-29T17:55:30.000+0000" }, { "id": "456476", "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.v20200814072027}}\r\n\r\n*Test and other information can be found at:*\r\nhttps://github.com/appcelerator/titanium_mobile/pull/11270", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-08-14T18:09:47.000+0000", "updated": "2020-08-14T18:09:47.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }