fix: permission alert crash

This commit is contained in:
Tobias Becht
2021-06-23 15:32:40 +02:00
parent 9c15c4964c
commit f80a560478
@@ -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];