Fix crash

This commit is contained in:
Victor Shcherb 2018-05-25 10:14:45 +02:00
parent 7f679035f4
commit 3c73aaa5dc

View file

@ -84,11 +84,13 @@ public class TravelDownloadUpdateCard extends BaseTravelCard {
}
public void updateProgresBar() {
if(ref != null) {
DownloadUpdateVH holder = ref.get();
if (holder != null && holder.itemView.isShown()) {
updateProgressBar(holder);
}
}
}
private void updateProgressBar(DownloadUpdateVH holder) {
if (isLoadingInProgress()) {