forked from organicmaps/organicmaps
[android] Minor warning fix
Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
parent
195198d0cc
commit
c6499fd147
1 changed files with 5 additions and 5 deletions
|
@ -11,26 +11,26 @@ namespace
|
|||
extern "C"
|
||||
{
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_mapswithme_maps_sound_TtsPlayer_nativeEnableTurnNotifications(JNIEnv * env, jclass thiz, jboolean enable)
|
||||
Java_com_mapswithme_maps_sound_TtsPlayer_nativeEnableTurnNotifications(JNIEnv *, jclass, jboolean enable)
|
||||
{
|
||||
return frm()->GetRoutingManager().EnableTurnNotifications(static_cast<bool>(enable));
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_com_mapswithme_maps_sound_TtsPlayer_nativeAreTurnNotificationsEnabled(JNIEnv * env, jclass clazz)
|
||||
Java_com_mapswithme_maps_sound_TtsPlayer_nativeAreTurnNotificationsEnabled(JNIEnv *, jclass)
|
||||
{
|
||||
return static_cast<jboolean>(frm()->GetRoutingManager().AreTurnNotificationsEnabled());
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_mapswithme_maps_sound_TtsPlayer_nativeSetTurnNotificationsLocale(JNIEnv * env, jclass thiz, jstring jLocale)
|
||||
Java_com_mapswithme_maps_sound_TtsPlayer_nativeSetTurnNotificationsLocale(JNIEnv * env, jclass, jstring jLocale)
|
||||
{
|
||||
frm()->GetRoutingManager().SetTurnNotificationsLocale(jni::ToNativeString(env, jLocale));
|
||||
}
|
||||
|
||||
JNIEXPORT jstring JNICALL
|
||||
Java_com_mapswithme_maps_sound_TtsPlayer_nativeGetTurnNotificationsLocale(JNIEnv * env, jclass thiz)
|
||||
Java_com_mapswithme_maps_sound_TtsPlayer_nativeGetTurnNotificationsLocale(JNIEnv * env, jclass)
|
||||
{
|
||||
return jni::ToJavaString(env, frm()->GetRoutingManager().GetTurnNotificationsLocale().c_str());
|
||||
return jni::ToJavaString(env, frm()->GetRoutingManager().GetTurnNotificationsLocale());
|
||||
}
|
||||
} // extern "C"
|
||||
|
|
Loading…
Add table
Reference in a new issue