Update page
This commit is contained in:
parent
6077465ab9
commit
cd8a3d85b1
1 changed files with 3 additions and 9 deletions
|
@ -110,11 +110,7 @@ public class DownloadActivity extends BaseDownloadActivity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPageSelected(int i) {
|
public void onPageSelected(int i) {
|
||||||
if (i == UPDATES_TAB_NUMBER) {
|
visibleBanner.updateBannerInProgress();
|
||||||
visibleBanner.hideDownloadProgressLayout();
|
|
||||||
} else {
|
|
||||||
visibleBanner.showDownloadProgressLayout();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -292,10 +288,6 @@ public class DownloadActivity extends BaseDownloadActivity {
|
||||||
|
|
||||||
initFreeVersionBanner();
|
initFreeVersionBanner();
|
||||||
updateBannerInProgress();
|
updateBannerInProgress();
|
||||||
|
|
||||||
if (ctx.getCurrentTab() != UPDATES_TAB_NUMBER) {
|
|
||||||
downloadProgressLayout.setVisibility(View.VISIBLE);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateBannerInProgress() {
|
public void updateBannerInProgress() {
|
||||||
|
@ -307,6 +299,8 @@ public class DownloadActivity extends BaseDownloadActivity {
|
||||||
updateDescriptionTextWithSize(ctx, downloadProgressLayout);
|
updateDescriptionTextWithSize(ctx, downloadProgressLayout);
|
||||||
if (ctx.getCurrentTab() == UPDATES_TAB_NUMBER || !showSpace) {
|
if (ctx.getCurrentTab() == UPDATES_TAB_NUMBER || !showSpace) {
|
||||||
downloadProgressLayout.setVisibility(View.GONE);
|
downloadProgressLayout.setVisibility(View.GONE);
|
||||||
|
} else {
|
||||||
|
downloadProgressLayout.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
updateFreeVersionBanner();
|
updateFreeVersionBanner();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue