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:
authorDmitry Yunitsky <yunik@mapswithme.com>2016-02-08 13:12:50 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:16:59 +0300
commitae05d79336f0bd430cdbf0cc4c91d8317631f23e (patch)
tree5b866bb2c2374bc7ef2f5e5ee4237e307c107a31
parent0d52d5a922a5fddec95b912da036b27d1b53b870 (diff)
[android] Added method to clear edits.
-rw-r--r--android/jni/com/mapswithme/maps/editor/Editor.cpp6
-rw-r--r--android/src/com/mapswithme/maps/editor/Editor.java2
2 files changed, 8 insertions, 0 deletions
diff --git a/android/jni/com/mapswithme/maps/editor/Editor.cpp b/android/jni/com/mapswithme/maps/editor/Editor.cpp
index baf0db3203..af37d16d73 100644
--- a/android/jni/com/mapswithme/maps/editor/Editor.cpp
+++ b/android/jni/com/mapswithme/maps/editor/Editor.cpp
@@ -118,4 +118,10 @@ Java_com_mapswithme_maps_editor_Editor_nativeGetStats(JNIEnv * env, jclass clazz
env->SetLongArrayRegion(result, 0, 3, buf);
return result;
}
+
+JNIEXPORT void JNICALL
+Java_com_mapswithme_maps_editor_Editor_nativeClearLocalEdits(JNIEnv * env, jclass clazz)
+{
+ Editor::Instance().ClearAllLocalEdits();
+}
} // extern "C"
diff --git a/android/src/com/mapswithme/maps/editor/Editor.java b/android/src/com/mapswithme/maps/editor/Editor.java
index 2ed6c73eb4..328a78b81b 100644
--- a/android/src/com/mapswithme/maps/editor/Editor.java
+++ b/android/src/com/mapswithme/maps/editor/Editor.java
@@ -77,4 +77,6 @@ public final class Editor
* @return array [total edits count, uploaded edits count, last upload timestamp]
*/
public static native long[] nativeGetStats();
+
+ public static native void nativeClearLocalEdits();
}