File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import UIKit
1010import MessageUI
1111import SafariServices
1212import LNPopupController
13+ import FRadioPlayer
1314
1415class MainCoordinator : NavigationCoordinator {
1516 var childCoordinators : [ Coordinator ] = [ ]
@@ -21,6 +22,7 @@ class MainCoordinator: NavigationCoordinator {
2122 return vc
2223 } ( )
2324
25+ private let player = FRadioPlayer . shared
2426 private var isPopupBarPresented = false
2527
2628 func start( ) {
@@ -101,8 +103,10 @@ extension MainCoordinator: StationsViewControllerDelegate {
101103 if isNewStation {
102104 StationsManager . shared. set ( station: station)
103105 presentPopupBarIfNeeded ( )
104- } else {
106+ } else if player . isPlaying {
105107 navigationController. openPopup ( animated: true )
108+ } else {
109+ player. togglePlaying ( )
106110 }
107111 }
108112
You can’t perform that action at this time.
0 commit comments