[drape] Allow controlling viewport restoration on DeactivateMapSelection

Signed-off-by: hemanggs <hemangmanhas@gmail.com>
This commit is contained in:
hemanggs
2025-06-08 19:13:12 +05:30
committed by Konstantin Pastbin
parent fc199252eb
commit 90492e95e6
12 changed files with 32 additions and 23 deletions

View File

@@ -621,9 +621,9 @@ void Framework::DeactivatePopup()
m_work.DeactivateMapSelection();
}
void Framework::DeactivateMapSelectionCircle()
void Framework::DeactivateMapSelectionCircle(bool restoreViewport)
{
m_work.DeactivateMapSelectionCircle();
m_work.DeactivateMapSelectionCircle(restoreViewport);
}
/*
@@ -1448,9 +1448,9 @@ Java_app_organicmaps_sdk_Framework_nativeDeactivatePopup(JNIEnv * env, jclass)
}
JNIEXPORT void JNICALL
Java_app_organicmaps_sdk_Framework_nativeDeactivateMapSelectionCircle(JNIEnv * env, jclass)
Java_app_organicmaps_sdk_Framework_nativeDeactivateMapSelectionCircle(JNIEnv * env, jclass, jboolean restoreViewport)
{
return g_framework->DeactivateMapSelectionCircle();
return g_framework->DeactivateMapSelectionCircle(restoreViewport);
}
JNIEXPORT void JNICALL

View File

@@ -171,7 +171,7 @@ namespace android
void ExecuteMapApiRequest();
void DeactivatePopup();
void DeactivateMapSelectionCircle();
void DeactivateMapSelectionCircle(bool restoreViewport);
// std::string GetOutdatedCountriesString();