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): guard PHPicker usage with openPhotoGallery #12129
Conversation
Fixes TIMOB-28151
|
@@ -1784,7 +1784,7 @@ - (void)handleTrimmedVideo:(NSURL *)theURL withDictionary:(NSDictionary *)dictio | |||
} | |||
#endif | |||
|
|||
#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.
You may also need to check it's delegate methods, but not sure if they're also affected.
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.
delegate methods appear to already be guarded
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.
LGTM, was able to reproduce locally and confirm the fix.
To reproduce: var window = Ti.UI.createWindow();
Ti.Media.beep();
window.open(); Then you must build for device: |
Fixes TIMOB-28151
JIRA: https://jira.appcelerator.org/browse/TIMOB-28151
Guard the usage of PHPicker with
defined(USE_TI_MEDIAOPENPHOTOGALLERY)
otherwise 💥