[TIMOB-5970] iPad: Once Titanium.Media.openPhotoGallery is called, it can not be cancelled.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-01-03T15:45:27.000+0000 |
Affected Version/s | Release 1.7.3 |
Fix Version/s | Sprint 2011-44, Release 1.8.0, Release 1.7.6 |
Components | iOS |
Labels | module_media, qe-testadded |
Reporter | Qing Gao |
Assignee | Reggie Seagraves |
Created | 2011-11-02T17:38:39.000+0000 |
Updated | 2012-01-03T15:45:27.000+0000 |
Description
Once "Titanium.Media.openPhotoGallery" is called, you can not cancel it. There is no such "cancel" button as shown on iPhone. If you click twice outside the photo gallery, an error will be generated.
Repro Steps
Step 1: create a project to run the example code below. Step 2: click on the space outside the photo gallery. Step 3: click again on the space outside the photo gallery, the "error" alert will be popped up.
var win = Ti.UI.createWindow({ backgroundColor: '#000' });
win.addEventListener('click', function(){
Titanium.Media.openPhotoGallery({
success:function(event)
{
alert('success');
},
cancel:function(cancel)
{
alert('cancel');
},
error:function(error)
{
alert('error');
}
});
})
win.open();
Tested on Ti Studio 1.0.7.201112061404 Ti Mob SDK 1.8.0.1.v20111207091653 OSX Lion iPad 2 4.3.5 Expected behavior is shown. *Note that on iOS on an iPad using a popover, there isn't a UI use case for having a cancel button displayed in the nav bar of the popover. The proper way to dismiss a popover is to dismiss it by clicking outside of the popover
Reopening/closing to add labels