Fix review

This commit is contained in:
Dima-1 2020-12-28 17:14:18 +02:00
parent 7944fc3a2b
commit 144f812f40
2 changed files with 2 additions and 6 deletions

View file

@ -182,6 +182,7 @@ public class ExploreRvAdapter extends RecyclerView.Adapter<RecyclerView.ViewHold
}
public void addDownloadUpdateCard(TravelDownloadUpdateCard card) {
removeDownloadUpdateCard();
this.downloadCard = card;
if (addItem(getDownloadUpdateCardPosition(), card)) {
notifyDataSetChanged();

View file

@ -61,7 +61,6 @@ public class WikivoyageExploreActivity extends TabActivity implements DownloadEv
protected List<WeakReference<Fragment>> fragments = new ArrayList<>();
private LockableViewPager viewPager;
private boolean finishDownloading = false;
@Override
public void onCreate(Bundle savedInstanceState) {
@ -314,12 +313,10 @@ public class WikivoyageExploreActivity extends TabActivity implements DownloadEv
public void populateData() {
switchProgressBarVisibility(true);
finishDownloading = false;
new LoadWikivoyageData(this).execute();
}
private void onDataLoaded() {
finishDownloading = true;
switchProgressBarVisibility(false);
updateSearchBarVisibility();
updateFragments();
@ -356,10 +353,8 @@ public class WikivoyageExploreActivity extends TabActivity implements DownloadEv
}
public void onTabFragmentResume(Fragment fragment) {
if(finishDownloading) {
updateFragments();
}
}
@Override
public void savedArticlesUpdated() {