|
5 | 5 | #import "WPMediaGroupPickerViewController.h" |
6 | 6 | #import "WPPHAssetDataSource.h" |
7 | 7 | #import "WPMediaCapturePresenter.h" |
8 | | -#import "WPInputMediaPickerViewController.h" |
9 | 8 | #import "WPCarouselAssetsViewController.h" |
10 | 9 | #import "UIViewController+MediaAdditions.h" |
11 | 10 |
|
@@ -382,7 +381,6 @@ - (void)addCollectionViewToView |
382 | 381 | - (void)setupSearchBar |
383 | 382 | { |
384 | 383 | BOOL shouldShowSearchBar = self.options.showSearchBar && |
385 | | - ![self.parentViewController isKindOfClass:[WPInputMediaPickerViewController class]] && //Disable search bar on WPInputMediaPicker |
386 | 384 | [self.dataSource respondsToSelector:@selector(searchFor:)]; |
387 | 385 |
|
388 | 386 | if (shouldShowSearchBar && self.searchBar == nil) { |
@@ -1470,18 +1468,14 @@ - (BOOL)isPresentedAsPopover |
1470 | 1468 |
|
1471 | 1469 | - (void)registerForKeyboardNotifications |
1472 | 1470 | { |
1473 | | - if (![self.parentViewController isKindOfClass:[WPInputMediaPickerViewController class]]) { |
1474 | | - [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(keyboardWillShowNotification:) name:UIKeyboardWillShowNotification object:nil]; |
1475 | | - [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(keyboardWillHideNotification:) name:UIKeyboardWillHideNotification object:nil]; |
1476 | | - } |
| 1471 | + [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(keyboardWillShowNotification:) name:UIKeyboardWillShowNotification object:nil]; |
| 1472 | + [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(keyboardWillHideNotification:) name:UIKeyboardWillHideNotification object:nil]; |
1477 | 1473 | } |
1478 | 1474 |
|
1479 | 1475 | - (void)unregisterForKeyboardNotifications |
1480 | 1476 | { |
1481 | | - if (![self.parentViewController isKindOfClass:[WPInputMediaPickerViewController class]]) { |
1482 | | - [NSNotificationCenter.defaultCenter removeObserver:self name:UIKeyboardWillShowNotification object:nil]; |
1483 | | - [NSNotificationCenter.defaultCenter removeObserver:self name:UIKeyboardWillHideNotification object:nil]; |
1484 | | - } |
| 1477 | + [NSNotificationCenter.defaultCenter removeObserver:self name:UIKeyboardWillShowNotification object:nil]; |
| 1478 | + [NSNotificationCenter.defaultCenter removeObserver:self name:UIKeyboardWillHideNotification object:nil]; |
1485 | 1479 | } |
1486 | 1480 |
|
1487 | 1481 | - (void)keyboardWillShowNotification:(NSNotification *)notification |
|
0 commit comments