[android] Added method to clear edits.

This commit is contained in:
Dmitry Yunitsky 2016-02-08 13:12:50 +03:00 committed by Sergey Yershov
parent 0d52d5a922
commit ae05d79336
2 changed files with 8 additions and 0 deletions

View file

@ -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"

View file

@ -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();
}