mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
[Chat] fix permission for camera and photos + build version updated
This commit is contained in:
parent
50983e8fa5
commit
10faf268d9
2 changed files with 11 additions and 5 deletions
|
|
@ -229,8 +229,12 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
[sheet addButtonWithTitle:NSLocalizedString(@"Camera", nil)
|
||||
block:^() {
|
||||
if([AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo] == AVAuthorizationStatusAuthorized ){
|
||||
block(UIImagePickerControllerSourceTypeCamera);
|
||||
}else{
|
||||
if([PHPhotoLibrary authorizationStatus] != PHAuthorizationStatusDenied ){
|
||||
block(UIImagePickerControllerSourceTypeCamera);
|
||||
}else{
|
||||
[[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Photo's permission", nil) message:NSLocalizedString(@"Photo not authorized", nil) delegate:nil cancelButtonTitle:nil otherButtonTitles:@"Continue", nil] show];
|
||||
}
|
||||
}else {
|
||||
[[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Camera's permission", nil) message:NSLocalizedString(@"Camera not authorized", nil) delegate:nil cancelButtonTitle:nil otherButtonTitles:@"Continue", nil] show];
|
||||
}
|
||||
}];
|
||||
|
|
@ -238,10 +242,10 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]) {
|
||||
[sheet addButtonWithTitle:NSLocalizedString(@"Photo library", nil)
|
||||
block:^() {
|
||||
if([PHPhotoLibrary authorizationStatus] == PHAuthorizationStatusAuthorized ){
|
||||
if([PHPhotoLibrary authorizationStatus] != PHAuthorizationStatusDenied ){
|
||||
block(UIImagePickerControllerSourceTypePhotoLibrary);
|
||||
}else{
|
||||
[[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Camera's permission", nil) message:NSLocalizedString(@"Camera not authorized", nil) delegate:nil cancelButtonTitle:nil otherButtonTitles:@"Continue", nil] show];
|
||||
[[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Photo's permission", nil) message:NSLocalizedString(@"Photo not authorized", nil) delegate:nil cancelButtonTitle:nil otherButtonTitles:@"Continue", nil] show];
|
||||
}
|
||||
}];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>9</string>
|
||||
<string>10</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<true/>
|
||||
<key>ITSEncryptionExportComplianceCode</key>
|
||||
|
|
@ -68,6 +68,8 @@
|
|||
<string>Make calls with your friends</string>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
<string>Use microphone to make audio calls</string>
|
||||
<key>NSPhotoLibraryAddUsageDescription</key>
|
||||
<string>Add photo you shoot by yourself</string>
|
||||
<key>NSPhotoLibraryUsageDescription</key>
|
||||
<string>Share photos with your friends and customize avatars</string>
|
||||
<key>NSVoIPUsageDescription</key>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue