From cd8a3d85b187dfc4b0da2e733ff7768d61734d56 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 22 Oct 2015 01:16:38 +0200 Subject: [PATCH] Update page --- .../net/osmand/plus/download/DownloadActivity.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/download/DownloadActivity.java b/OsmAnd/src/net/osmand/plus/download/DownloadActivity.java index 815d50e400..7738588eb3 100644 --- a/OsmAnd/src/net/osmand/plus/download/DownloadActivity.java +++ b/OsmAnd/src/net/osmand/plus/download/DownloadActivity.java @@ -110,11 +110,7 @@ public class DownloadActivity extends BaseDownloadActivity { @Override public void onPageSelected(int i) { - if (i == UPDATES_TAB_NUMBER) { - visibleBanner.hideDownloadProgressLayout(); - } else { - visibleBanner.showDownloadProgressLayout(); - } + visibleBanner.updateBannerInProgress(); } @Override @@ -292,10 +288,6 @@ public class DownloadActivity extends BaseDownloadActivity { initFreeVersionBanner(); updateBannerInProgress(); - - if (ctx.getCurrentTab() != UPDATES_TAB_NUMBER) { - downloadProgressLayout.setVisibility(View.VISIBLE); - } } public void updateBannerInProgress() { @@ -307,6 +299,8 @@ public class DownloadActivity extends BaseDownloadActivity { updateDescriptionTextWithSize(ctx, downloadProgressLayout); if (ctx.getCurrentTab() == UPDATES_TAB_NUMBER || !showSpace) { downloadProgressLayout.setVisibility(View.GONE); + } else { + downloadProgressLayout.setVisibility(View.VISIBLE); } updateFreeVersionBanner(); } else {