mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-01 10:33:45 +00:00
[ios] hotfix track recording stop button action
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
99a0f3973e
commit
494b00b862
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user