[TIMOB-5378] iOS: showCamera leaves a black background if saveToPhotoGallery or allowEditing are true
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2019-08-14T17:06:16.000+0000 |
Affected Version/s | Release 1.8.0, Release 5.5.0 |
Fix Version/s | Sprint 2011-39, Release 1.8.0 |
Components | iOS |
Labels | regression |
Reporter | Jon Alter |
Assignee | Unknown |
Created | 2011-09-26T19:05:31.000+0000 |
Updated | 2019-12-02T23:06:27.000+0000 |
Description
If you use showCamera and have either allowEditing or saveToPhotoGallery set to true the screen will be black after taking a picture, after the camera disappears.
Step 1: run the code below on device
Step 2: click on the window
Step 3: take a picture
Step 4: notice the camera view disappears but the window is still all black
Step 5: repeat the above steps with 1.7.2 and it will work fine (not leave a black background)
var win = Ti.UI.createWindow({
backgroundColor : 'white'
});
win.open();
win.addEventListener('click', function(e) {
Titanium.Media.showCamera({
// allowEditing : true,
saveToPhotoGallery : true,
mediaTypes : [Ti.Media.MEDIA_TYPE_VIDEO, Ti.Media.MEDIA_TYPE_PHOTO],
success : function(event) {
alert('success');
},
cancel : function() {
alert('cancel');
},
error : function() {
alert('error');
}
});
});
adding the regression tag (as thats what this is)
Adding that oddly enough, it doesn't happen on 4.2 devices (Verizon iPhone).
Added the Sprint back.
Fix verified in SDK 1.8.0.v20111013161411 with iPod 4.3.3
Standardizing summary and labels.