Fix ExploreRvAdapter
This commit is contained in:
parent
75afb2b227
commit
8716d49a25
2 changed files with 7 additions and 2 deletions
|
@ -142,7 +142,9 @@ public class ExploreRvAdapter extends RecyclerView.Adapter<RecyclerView.ViewHold
|
|||
|
||||
public void addNeededMapsCard(TravelNeededMapsCard card) {
|
||||
this.neededMapsCard = card;
|
||||
if (addItem(getNeededMapsCardPosition(), card)) {
|
||||
if (neededMapsCardExists(getNeededMapsCardPosition())) {
|
||||
updateNeededMapsCard(false);
|
||||
} else if (addItem(getNeededMapsCardPosition(), card)) {
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
}
|
||||
|
@ -183,7 +185,9 @@ public class ExploreRvAdapter extends RecyclerView.Adapter<RecyclerView.ViewHold
|
|||
|
||||
public void addDownloadUpdateCard(TravelDownloadUpdateCard card) {
|
||||
this.downloadCard = card;
|
||||
if (addItem(getDownloadUpdateCardPosition(), card)) {
|
||||
if (downloadUpdateCardExists(getDownloadUpdateCardPosition())) {
|
||||
updateDownloadUpdateCard(false);
|
||||
} else if (addItem(getDownloadUpdateCardPosition(), card)) {
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -319,6 +319,7 @@ public class WikivoyageExploreActivity extends TabActivity implements DownloadEv
|
|||
private void onDataLoaded() {
|
||||
switchProgressBarVisibility(false);
|
||||
updateSearchBarVisibility();
|
||||
updateFragments();
|
||||
}
|
||||
|
||||
public void updateFragments() {
|
||||
|
|
Loading…
Reference in a new issue