MESSENGER-4034 app icon name

This commit is contained in:
Arnfried Griesert
2023-02-08 14:53:45 +00:00
parent 50c2e4957f
commit 4264e3b02f
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]
@@ -1515,7 +1515,12 @@ static NSArray<NSNumber*> *initialSyncSilentErrorsHTTPStatusCodes;
return;
}
NSString *appDisplayName = [NSString stringWithFormat:@"%@ (iOS)", [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"]];
NSString *appDisplayName;
if(![BWIBuildSettings.shared.secondaryAppName isEqualToString:@""]) {
appDisplayName = BWIBuildSettings.shared.secondaryAppName;
} else {
appDisplayName = [[NSBundle mainBundle] infoDictionary][@"CFBundleDisplayName"];
}
NSString *b64Token = [token base64EncodedStringWithOptions:0];
@@ -1174,7 +1174,12 @@ NSString *const MXKContactManagerDataType = @"org.matrix.kit.MXKContactManagerDa
+ (void)requestUserConfirmationForLocalContactsSyncInViewController:(UIViewController *)viewController completionHandler:(void (^)(BOOL))handler
{
NSString *appDisplayName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];
NSString *appDisplayName;
if(![BWIBuildSettings.shared.secondaryAppName isEqualToString:@""]) {
appDisplayName = BWIBuildSettings.shared.secondaryAppName;
} else {
appDisplayName = [[NSBundle mainBundle] infoDictionary][@"CFBundleDisplayName"];
}
[MXKContactManager requestUserConfirmationForLocalContactsSyncWithTitle:[VectorL10n localContactsAccessDiscoveryWarningTitle]
message:[VectorL10n localContactsAccessDiscoveryWarning:appDisplayName]