From a95b204b25db03b22cd0aa6db4614e011e7fdf30 Mon Sep 17 00:00:00 2001 From: alexzatsepin Date: Mon, 6 Mar 2017 11:52:19 +0300 Subject: [PATCH] [android] Fixed booking reviews count --- android/jni/com/mapswithme/maps/Sponsored.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/jni/com/mapswithme/maps/Sponsored.cpp b/android/jni/com/mapswithme/maps/Sponsored.cpp index 8d5f1aed0e..b0720d0f87 100644 --- a/android/jni/com/mapswithme/maps/Sponsored.cpp +++ b/android/jni/com/mapswithme/maps/Sponsored.cpp @@ -175,10 +175,10 @@ JNIEXPORT void JNICALL Java_com_mapswithme_maps_widget_placepage_Sponsored_nativ auto facilities = ToFacilitiesArray(env, hotelInfo.m_facilities); auto reviews = ToReviewsArray(env, hotelInfo.m_reviews); auto nearby = env->NewObjectArray(0, g_nearbyObjectClass, 0); - + jlong reviewsCount = static_cast(hotelInfo.m_scoreCount); env->CallStaticVoidMethod(g_sponsoredClass, g_infoCallback, jni::ToJavaString(env, hotelId), env->NewObject(g_hotelInfoClass, g_hotelInfoConstructor, description, - photos, facilities, reviews, nearby, hotelInfo.m_scoreCount)); + photos, facilities, reviews, nearby, reviewsCount)); }); }); }