Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5970] iPad: Once Titanium.Media.openPhotoGallery is called, it can not be cancelled.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-01-03T15:45:27.000+0000
Affected Version/sRelease 1.7.3
Fix Version/sSprint 2011-44, Release 1.8.0, Release 1.7.6
ComponentsiOS
Labelsmodule_media, qe-testadded
ReporterQing Gao
AssigneeReggie Seagraves
Created2011-11-02T17:38:39.000+0000
Updated2012-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();

Comments

  1. Michael Pettiford 2011-12-07

    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
  2. Michael Pettiford 2012-01-03

    Reopening/closing to add labels

JSON Source