Fix modal presentation issue

pull/141/head
gmbnt 5 years ago
parent 3537cee687
commit 9c447e304c

@ -3014,6 +3014,7 @@ typedef enum : NSUInteger {
OWSAssertDebug(pickerModal); OWSAssertDebug(pickerModal);
[self dismissKeyBoard]; [self dismissKeyBoard];
pickerModal.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentViewController:pickerModal animated:YES completion:nil]; [self presentViewController:pickerModal animated:YES completion:nil];
}]; }];
}]; }];
@ -3049,6 +3050,7 @@ typedef enum : NSUInteger {
pickerModal.sendMediaNavDelegate = self; pickerModal.sendMediaNavDelegate = self;
[self dismissKeyBoard]; [self dismissKeyBoard];
pickerModal.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentViewController:pickerModal animated:YES completion:nil]; [self presentViewController:pickerModal animated:YES completion:nil];
}]; }];
} }

@ -58,7 +58,7 @@ class ImagePickerGridController: UICollectionViewController, PhotoLibraryDelegat
// ensure images at the end of the list can be scrolled above the bottom buttons // ensure images at the end of the list can be scrolled above the bottom buttons
let bottomButtonInset = -1 * SendMediaNavigationController.bottomButtonsCenterOffset + SendMediaNavigationController.bottomButtonWidth / 2 let bottomButtonInset = -1 * SendMediaNavigationController.bottomButtonsCenterOffset + SendMediaNavigationController.bottomButtonWidth / 2
collectionView.contentInset.bottom = bottomButtonInset + 8 collectionView.contentInset.bottom = bottomButtonInset + 16
view.backgroundColor = .white view.backgroundColor = .white
// The PhotoCaptureVC needs a shadow behind it's cancel button, so we use a custom icon. // The PhotoCaptureVC needs a shadow behind it's cancel button, so we use a custom icon.

Loading…
Cancel
Save