mirror of
https://github.com/DmcSDK/cordova-plugin-mediaPicker
synced 2026-04-14 00:03:04 +08:00
Merge pull request #123 from h4ck-rOOt/master
fix: permission alert crash
This commit is contained in:
@@ -168,7 +168,9 @@
|
||||
[alert addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"Setting",nil) style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
||||
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
|
||||
}]];
|
||||
[self presentViewController:alert animated:YES completion:nil];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[self presentViewController:alert animated:YES completion:nil];
|
||||
});
|
||||
}else {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[self getAlassetData];
|
||||
|
||||
Reference in New Issue
Block a user