[ios] hotfix track recording stop button action

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
Kiryl Kaveryn
2025-06-16 11:58:32 +04:00
committed by Konstantin Pastbin
parent 99a0f3973e
commit 494b00b862

View File

@@ -77,14 +77,15 @@ extension BottomMenuInteractor: BottomMenuInteractorProtocol {
func toggleTrackRecording() {
close()
let mapViewController = MapViewController.shared()!
switch trackRecorder.recordingState {
case .active:
break
mapViewController.showTrackRecordingPlacePage()
case .inactive:
trackRecorder.start { result in
switch result {
case .success:
MapViewController.shared()?.showTrackRecordingPlacePage()
mapViewController.showTrackRecordingPlacePage()
case .failure:
break
}