Skip to content

Commit

Permalink
fix(ios): rememberProxy call on overlay proxy for main thread (#10685)
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaysingh-axway authored and ssjsamir committed Feb 12, 2019
1 parent 9525578 commit 10d0813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iphone/Classes/MediaModule.m
Expand Up @@ -936,14 +936,14 @@ - (void)showCamera:(id)args
{
ENSURE_SINGLE_ARG_OR_NIL(args, NSDictionary);
if (![NSThread isMainThread]) {
[self rememberProxy:[args objectForKey:@"overlay"]];
TiThreadPerformOnMainThread(^{
[self showCamera:args];
},
NO);
return;
}

[self rememberProxy:[args objectForKey:@"overlay"]];
[self showPicker:args isCamera:YES];
}
#endif
Expand Down

0 comments on commit 10d0813

Please sign in to comment.