[android][downloader] fix: Show topmost parent instead of direct one.

This commit is contained in:
Alexander Marchuk 2016-06-03 17:12:25 +03:00 committed by Vladimir Byko-Ianko
parent fa325a0921
commit a736a6b4f1

View file

@ -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);