MESSENGER-4034 app icon name

This commit is contained in:
Arnfried Griesert
2023-02-08 14:53:45 +00:00
parent f163e917b3
commit 66b2259f7c
15 changed files with 72 additions and 17 deletions
@@ -362,7 +362,12 @@ static const CGFloat kLocalPreviewMargin = 20;
{
// Access to the camera is mandatory to display the self view
// Check the permission right now
NSString *appDisplayName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];
NSString *appDisplayName;
if(![BWIBuildSettings.shared.secondaryAppName isEqualToString:@""]) {
appDisplayName = BWIBuildSettings.shared.secondaryAppName;
} else {
appDisplayName = [[NSBundle mainBundle] infoDictionary][@"CFBundleDisplayName"];
}
[MXKTools checkAccessForMediaType:AVMediaTypeVideo
manualChangeMessage:[VectorL10n cameraAccessNotGrantedForCall:appDisplayName]
@@ -638,7 +643,12 @@ static const CGFloat kLocalPreviewMargin = 20;
{
// If we are here, we have access to the camera
// The following check is mainly to check microphone access permission
NSString *appDisplayName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];
NSString *appDisplayName;
if(![BWIBuildSettings.shared.secondaryAppName isEqualToString:@""]) {
appDisplayName = BWIBuildSettings.shared.secondaryAppName;
} else {
appDisplayName = [[NSBundle mainBundle] infoDictionary][@"CFBundleDisplayName"];
}
[MXKTools checkAccessForCall:mxCall.isVideoCall
manualChangeMessageForAudio:[VectorL10n microphoneAccessNotGrantedForCall:appDisplayName]