Merge pull request #123 from h4ck-rOOt/master

fix: permission alert crash
This commit is contained in:
DMC
2021-07-06 17:30:23 +08:00
committed by GitHub

View File

@@ -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];