diff options
Diffstat (limited to 'android/jni/com/mapswithme/maps/LocationState.cpp')
-rw-r--r-- | android/jni/com/mapswithme/maps/LocationState.cpp | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/android/jni/com/mapswithme/maps/LocationState.cpp b/android/jni/com/mapswithme/maps/LocationState.cpp index 5dca30f266..50b198880e 100644 --- a/android/jni/com/mapswithme/maps/LocationState.cpp +++ b/android/jni/com/mapswithme/maps/LocationState.cpp @@ -5,23 +5,26 @@ #include "../platform/Platform.hpp" -location::State * GetLocationState() -{ - return g_framework->NativeFramework()->GetLocationState().get(); -} +///@TODO UVR +//location::State * GetLocationState() +//{ +// return g_framework->NativeFramework()->GetLocationState().get(); +//} extern "C" { JNIEXPORT void JNICALL Java_com_mapswithme_maps_LocationState_switchToNextMode(JNIEnv * env, jobject thiz) { - android::Platform::RunOnGuiThreadImpl(bind(&location::State::SwitchToNextMode, GetLocationState()), false); + ///@TODO UVR + //android::Platform::RunOnGuiThreadImpl(bind(&location::State::SwitchToNextMode, GetLocationState()), false); } JNIEXPORT jint JNICALL Java_com_mapswithme_maps_LocationState_getLocationStateMode(JNIEnv * env, jobject thiz) { - return GetLocationState()->GetMode(); + ///@TODO UVR + return 0;//GetLocationState()->GetMode(); } void LocationStateModeChanged(location::State::Mode mode, shared_ptr<jobject> const & obj) @@ -33,24 +36,28 @@ extern "C" JNIEXPORT jint JNICALL Java_com_mapswithme_maps_LocationState_addLocationStateModeListener(JNIEnv * env, jobject thiz, jobject obj) { - return GetLocationState()->AddStateModeListener(bind(&LocationStateModeChanged, _1, jni::make_global_ref(obj))); + ///@TODO UVR + return 0;//GetLocationState()->AddStateModeListener(bind(&LocationStateModeChanged, _1, jni::make_global_ref(obj))); } JNIEXPORT void JNICALL Java_com_mapswithme_maps_LocationState_removeLocationStateModeListener(JNIEnv * env, jobject thiz, jint slotID) { - GetLocationState()->RemoveStateModeListener(slotID); + ///@TODO UVR + //GetLocationState()->RemoveStateModeListener(slotID); } JNIEXPORT void JNICALL Java_com_mapswithme_maps_LocationState_turnOff(JNIEnv * env, jobject thiz) { - GetLocationState()->TurnOff(); + ///@TODO UVR + //GetLocationState()->TurnOff(); } JNIEXPORT void JNICALL Java_com_mapswithme_maps_LocationState_invalidatePosition(JNIEnv * env, jobject thiz) { - android::Platform::RunOnGuiThreadImpl(bind(&location::State::InvalidatePosition, GetLocationState()), false); + ///@TODO UVR + //android::Platform::RunOnGuiThreadImpl(bind(&location::State::InvalidatePosition, GetLocationState()), false); } } |