Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsentiy Milchakov <milcars@mapswithme.com>2019-11-29 18:52:04 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2020-01-13 12:04:14 +0300
commitd464f0944aa98d186b38e9ca86d9f5276e56fd25 (patch)
tree31a4b424fffea42271291fbc6b1525cecdbe392c /android/jni/com/mapswithme/maps/MapManager.cpp
parent5a6f8e98df9a8fa038f23bba039d54bca58c6af0 (diff)
[notification] Notifications for created objects and for objects from deleted maps are disabled.
Diffstat (limited to 'android/jni/com/mapswithme/maps/MapManager.cpp')
-rw-r--r--android/jni/com/mapswithme/maps/MapManager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/android/jni/com/mapswithme/maps/MapManager.cpp b/android/jni/com/mapswithme/maps/MapManager.cpp
index 5bb351f88e..a9ab7fa49e 100644
--- a/android/jni/com/mapswithme/maps/MapManager.cpp
+++ b/android/jni/com/mapswithme/maps/MapManager.cpp
@@ -431,7 +431,9 @@ JNIEXPORT void JNICALL
Java_com_mapswithme_maps_downloader_MapManager_nativeDelete(JNIEnv * env, jclass clazz, jstring root)
{
StartBatchingCallbacks();
- GetStorage().DeleteNode(jni::ToNativeString(env, root));
+ auto const countryId = jni::ToNativeString(env, root);
+ GetStorage().DeleteNode(countryId);
+ g_framework->NativeFramework()->GetNotificationManager().DeleteCandidatesForCountry(countryId);
EndBatchingCallbacks(env);
}