Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Fix #108 FPSourceControllerDelegate delegate is called twice #109

Merged
merged 1 commit into from
Nov 19, 2015

Conversation

newyorkpizza
Copy link
Contributor

The FPSourceControllerDelegate didPickMediaWithInfo delegate method is called twice because +[PHImageManager requestImageForAsset:], when called asynchronously, may call its completion handler more than once. The fix is to to set synchronous=YES to indicate that the completion block should be called exactly once.

This fix is scoped so that it will not affect the other callers of asyncFetchAssetThumbnailFromPHAsset.

The FPSourceControllerDelegate didPickMediaWithInfo delegate method is called twice
because +[PHImageManager requestImageForAsset:], when called asynchronously,
may call its completion handler more than once. The fix is to to set synchronous=YES
to indicate that the completion block should be called exactly once.

This fix is scoped so that it will not affect the other callers of
asyncFetchAssetThumbnailFromPHAsset.
dzana added a commit that referenced this pull request Nov 19, 2015
Fix #108 FPSourceControllerDelegate delegate is called twice
@dzana dzana merged commit 0329c0c into Ink:develop Nov 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants