Skip to content

Commit

Permalink
Fix issue of removing notifications from the same thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
1and2papa committed May 21, 2014
1 parent 73560cf commit cc89c3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CTAssetsPickerController/CTAssetsGroupViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ - (void)addNotificationObserver

- (void)removeNotificationObserver
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
[[NSNotificationCenter defaultCenter] removeObserver:self name:ALAssetsLibraryChangedNotification object:nil];
[[NSNotificationCenter defaultCenter] removeObserver:self name:CTAssetsPickerSelectedAssetsChangedNotification object:nil];
}


Expand Down
3 changes: 2 additions & 1 deletion CTAssetsPickerController/CTAssetsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ - (void)addNotificationObserver

- (void)removeNotificationObserver
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
[[NSNotificationCenter defaultCenter] removeObserver:self name:ALAssetsLibraryChangedNotification object:nil];
[[NSNotificationCenter defaultCenter] removeObserver:self name:CTAssetsPickerSelectedAssetsChangedNotification object:nil];
}


Expand Down

0 comments on commit cc89c3d

Please sign in to comment.