Problem
Cannot open a photo gallery two times in a row
Test case
* launch the following code from the iPad
* hit a button - it'll open the gallery
* close it by touching anywhere on the screen
* re-hit the same button - the photo gallery won't open.
var win = Ti.UI.createWindow();
b1 = Ti.UI.createButton({title:"P gallery",top:100,width:200,height:90});
b2 = Ti.UI.createButton({title:"P gallery",top:200,width:200,height:90});
win.add(b1);
win.add(b2);
b1.addEventListener('click',function(){
alert("Opening the gallery");
Ti.Media.openPhotoGallery({success:function(f){alert("Success");},
mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO],
allowEditing:true});
});
b2.addEventListener('click',function(){
alert("Opening the gallery 2");
Ti.Media.openPhotoGallery({success:function(f){alert("Success");},
mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO],
allowEditing:true});
});
win.open();
Discussions
Asked on the Q&A and apparently it is a bug. - please provide the link
Thanks for raising this ticket, Pablo Would you mind checking the fields for my comments, and completing the information. Then I will escalate it to the main project. Cheers
Pablo Would you mind providing the missing information so that I may escalate the issue? Thanks
Is this still a problem for you? Please provide the missing information, so that I may escalate it. Thank you
Closing since it's a dup.