[android] Fixed show country on map.

This commit is contained in:
vng 2014-10-10 20:23:30 +03:00 committed by Alex Zolotarev
parent 3afc5f349d
commit 087ea1e2ae
3 changed files with 4 additions and 0 deletions

View file

@ -82,6 +82,7 @@ extern "C"
Java_com_mapswithme_country_ActiveCountryTree_showOnMap(JNIEnv * env, jclass clazz, jint group, jint position)
{
GetMapLayout().ShowMap(ToGroup(group), position);
g_framework->DontLoadState();
}
JNIEXPORT jobject JNICALL

View file

@ -97,6 +97,7 @@ extern "C"
Java_com_mapswithme_country_CountryTree_showLeafOnMap(JNIEnv * env, jclass clazz, jint position)
{
GetTree().ShowLeafOnMap(position);
g_framework->DontLoadState();
}
JNIEXPORT jobject JNICALL

View file

@ -71,6 +71,8 @@ namespace android
storage::Storage & Storage();
CountryStatusDisplay * GetCountryStatusDisplay();
void DontLoadState() { m_doLoadState = false; }
void ShowCountry(storage::TIndex const & idx, bool zoomToDownloadButton);
storage::TStatus GetCountryStatus(storage::TIndex const & idx) const;