Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit 8a6873b

Browse files
Update: correctly configure the empty view if the delegate returns nil
1 parent 0a33d42 commit 8a6873b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Pod/Classes/WPMediaPickerViewController.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,8 @@ - (UIViewController *)emptyViewController
696696
if ([self usingEmptyViewController]) {
697697
_emptyViewController = [self.mediaPickerDelegate emptyViewControllerForMediaPickerController:self];
698698
}
699-
else {
699+
700+
if (_emptyViewController == nil) {
700701
_emptyViewController = self.defaultEmptyViewController;
701702
}
702703

0 commit comments

Comments
 (0)