[new downloader][android] fix: Corrected parent info.

This commit is contained in:
Alexander Marchuk 2016-02-18 20:05:01 +03:00 committed by Sergey Yershov
parent 4068ef0482
commit a8f7964179

View file

@ -146,10 +146,10 @@ static void UpdateItem(JNIEnv * env, jobject item, NodeAttrs const & attrs)
env->SetBooleanField(item, countryItemFieldPresent, attrs.m_present);
// Progress
env->SetIntField(item, countryItemFieldProgress,static_cast<jint>(attrs.m_downloadingProgress.first));
env->SetIntField(item, countryItemFieldProgress, static_cast<jint>(attrs.m_downloadingProgress.first));
}
static void PutItemsToList(JNIEnv * env, jobject const list, vector<TCountryId> const & children, TCountryId const & parent, int category)
static void PutItemsToList(JNIEnv * env, jobject const list, vector<TCountryId> const & children, int category)
{
static jmethodID const countryItemCtor = jni::GetConstructorID(env, g_countryItemClass, "(Ljava/lang/String;)V");
static jfieldID const countryItemFieldCategory = env->GetFieldID(g_countryItemClass, "category", "I");
@ -178,7 +178,6 @@ Java_com_mapswithme_maps_downloader_MapManager_nativeListItems(JNIEnv * env, jcl
Storage const & storage = GetStorage();
TCountryId const parentId = (parent ? jni::ToNativeString(env, parent) : storage.GetRootId());
static jfieldID const countryItemFieldParentId = env->GetFieldID(g_countryItemClass, "parentId", "Ljava/lang/String;");
if (parent)