Fix issue with blinking in recycler view

This commit is contained in:
Victor Shcherb 2018-05-16 22:50:18 +02:00
parent 6c0aa4abf5
commit 710a88936c

View file

@ -152,6 +152,7 @@ public class ExploreRvAdapter extends RecyclerView.Adapter<RecyclerView.ViewHold
if(nd != null) { if(nd != null) {
nd.updateView(); nd.updateView();
} }
return;
} }
int pos = getNeededMapsCardPosition(); int pos = getNeededMapsCardPosition();
if (neededMapsCardExists(pos)) { if (neededMapsCardExists(pos)) {
@ -192,6 +193,7 @@ public class ExploreRvAdapter extends RecyclerView.Adapter<RecyclerView.ViewHold
if(dc != null) { if(dc != null) {
dc.updateProgresBar(); dc.updateProgresBar();
} }
return;
} }
int pos = getDownloadUpdateCardPosition(); int pos = getDownloadUpdateCardPosition();
if (downloadUpdateCardExists(pos)) { if (downloadUpdateCardExists(pos)) {