now dismisses the view controller in activityDidFinish:. Required for iPad.