forked from organicmaps/organicmaps
[android] Fixed show country on map.
This commit is contained in:
parent
3afc5f349d
commit
087ea1e2ae
3 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue