From bdc254e02d761ff0a4b7c5f7f74d4cf4c73045f5 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Thu, 5 Sep 2024 08:29:19 +0200 Subject: [PATCH] [ios] Clear track on the screen after stopping recording it Signed-off-by: Alexander Borsuk --- map/framework.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/map/framework.cpp b/map/framework.cpp index c3e767a2da..2976f18b2f 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -1721,6 +1721,8 @@ void Framework::StopTrackRecording() auto & tracker = GpsTracker::Instance(); tracker.Disconnect(); tracker.SetEnabled(false); + if (m_drapeEngine) + m_drapeEngine->ClearGpsTrackPoints(); } void Framework::SaveTrackRecordingWithName(std::string const & name)