From 1f5a408b66849b063d91bc59085587ef64c61227 Mon Sep 17 00:00:00 2001 From: Ivan Sein Date: Wed, 21 Feb 2024 10:31:38 +0100 Subject: [PATCH 1/2] Adjust text and icon of the speaker button inside menu. Signed-off-by: Ivan Sein --- NextcloudTalk/CallViewController.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/NextcloudTalk/CallViewController.m b/NextcloudTalk/CallViewController.m index f7b40b5cb..10d6d1487 100644 --- a/NextcloudTalk/CallViewController.m +++ b/NextcloudTalk/CallViewController.m @@ -918,11 +918,12 @@ - (void)adjustMoreButtonMenu NCAudioController *audioController = [NCAudioController sharedInstance]; if ([self.speakerButton isHidden] && [audioController isAudioRouteChangeable]) { // TODO: Adjust for AirPlay? - UIImage *speakerImage = [UIImage systemImageNamed:@"speaker.wave.3.fill"]; - NSString *speakerActionTitle = NSLocalizedString(@"Speaker", nil); + UIImage *speakerImage = [UIImage systemImageNamed:@"speaker.slash.fill"]; + NSString *speakerActionTitle = NSLocalizedString(@"Disable speaker", nil); if (![NCAudioController sharedInstance].isSpeakerActive) { - speakerImage = [UIImage systemImageNamed:@"speaker.slash.fill"]; + speakerImage = [UIImage systemImageNamed:@"speaker.wave.3.fill"]; + speakerActionTitle = NSLocalizedString(@"Enable speaker", nil); } UIAction *speakerAction = [UIAction actionWithTitle:speakerActionTitle image:speakerImage identifier:nil handler:^(UIAction *action) { From 629c9766114f006996ca5938f89846f1e94b8e0e Mon Sep 17 00:00:00 2001 From: Ivan Sein Date: Wed, 21 Feb 2024 10:33:00 +0100 Subject: [PATCH 2/2] Update localizable strings file. Signed-off-by: Ivan Sein --- NextcloudTalk/en.lproj/Localizable.strings | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NextcloudTalk/en.lproj/Localizable.strings b/NextcloudTalk/en.lproj/Localizable.strings index 67f4de2b3..0298b0e43 100644 --- a/NextcloudTalk/en.lproj/Localizable.strings +++ b/NextcloudTalk/en.lproj/Localizable.strings @@ -646,6 +646,9 @@ /* No comment provided by engineer. */ "Disable blur" = "Disable blur"; +/* No comment provided by engineer. */ +"Disable speaker" = "Disable speaker"; + /* No comment provided by engineer. */ "Disconnected" = "Disconnected"; @@ -814,6 +817,9 @@ /* No comment provided by engineer. */ "Enable screensharing" = "Enable screensharing"; +/* No comment provided by engineer. */ +"Enable speaker" = "Enable speaker"; + /* No comment provided by engineer. */ "End call" = "End call";