From c2962411d2146956a64f72d7b80a55a3e3c1659a Mon Sep 17 00:00:00 2001 From: Pierre-Yves Date: Thu, 5 Dec 2024 17:30:58 +0100 Subject: [PATCH] PLAYNEXT-1192 Fix satellite radios discoverability for Play RTR (#529) --- Application/Sources/UI/Controllers/TabBarController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Sources/UI/Controllers/TabBarController.m b/Application/Sources/UI/Controllers/TabBarController.m index 8028c86d2..11b425a09 100755 --- a/Application/Sources/UI/Controllers/TabBarController.m +++ b/Application/Sources/UI/Controllers/TabBarController.m @@ -316,8 +316,8 @@ - (UIViewController *)audiosTabViewController } else { NSArray *radioChannels = applicationConfiguration.radioHomepageChannels; - if (radioChannels.count > 1) { - NSArray *satelliteRadioChannels = applicationConfiguration.satelliteRadioChannels; + NSArray *satelliteRadioChannels = applicationConfiguration.satelliteRadioChannels; + if (radioChannels.count + satelliteRadioChannels.count > 1) { UIViewController *radioChannelsViewController = [[RadioChannelsViewController alloc] initWithRadioChannels:radioChannels satelliteRadioChannels:satelliteRadioChannels]; NavigationController *audiosNavigationController = [[NavigationController alloc] initWithRootViewController:radioChannelsViewController]; audiosNavigationController.tabBarItem = [self audiosTabBarItem];