forked from organicmaps/organicmaps
[android][downloader] fix: Show topmost parent instead of direct one.
This commit is contained in:
parent
fa325a0921
commit
a736a6b4f1
1 changed files with 2 additions and 2 deletions
|
@ -101,14 +101,14 @@ public class OnmapDownloader implements MwmActivity.LeftAnimationTrackListener
|
|||
|
||||
if (showFrame)
|
||||
{
|
||||
boolean hasParent = !CountryItem.isRoot(mCurrentCountry.directParentName);
|
||||
boolean hasParent = !CountryItem.isRoot(mCurrentCountry.topmostParentId);
|
||||
|
||||
UiUtils.showIf(progress || enqueued, mProgress);
|
||||
UiUtils.showIf(!progress && !enqueued, mButton);
|
||||
UiUtils.showIf(hasParent, mParent);
|
||||
|
||||
if (hasParent)
|
||||
mParent.setText(mCurrentCountry.directParentName);
|
||||
mParent.setText(mCurrentCountry.topmostParentName);
|
||||
|
||||
mTitle.setText(mCurrentCountry.name);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue