New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ios): fix MediaModule compile error #12187
Conversation
|
@@ -2016,7 +2016,7 @@ - (void)popoverPresentationControllerDidDismissPopover:(UIPopoverPresentationCon | |||
- (void)presentationControllerDidDismiss:(UIPresentationController *)presentationController | |||
{ | |||
#if defined(USE_TI_MEDIASHOWCAMERA) || defined(USE_TI_MEDIAOPENPHOTOGALLERY) || defined(USE_TI_MEDIASTARTVIDEOEDITING) | |||
#if IS_SDK_IOS_14 | |||
#if IS_SDK_IOS_14 && defined(USE_TI_MEDIAOPENPHOTOGALLERY) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this covered by the line above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but it also goes into the statement if I only use Ti.Media.showCamera
or Ti.Media.startVideoEditing
. So it throws the compile error once we only the above, but not Ti.Media.openPhotoGallery
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, gotcha. If one of the other OR segments passes, we don't guard properly. OK!
JIRA: https://jira.appcelerator.org/browse/TIMOB-28202