Fix crash
This commit is contained in:
parent
0cd0fb59d3
commit
59cc7ec7ad
1 changed files with 5 additions and 3 deletions
|
@ -72,11 +72,13 @@ public class TravelNeededMapsCard extends BaseTravelCard {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateView() {
|
public void updateView() {
|
||||||
|
if (ref != null) {
|
||||||
NeededMapsVH holder = ref.get();
|
NeededMapsVH holder = ref.get();
|
||||||
if (holder != null && holder.itemView.isShown()) {
|
if (holder != null && holder.itemView.isShown()) {
|
||||||
updateView(holder);
|
updateView(holder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void updateView(NeededMapsVH holder) {
|
private void updateView(NeededMapsVH holder) {
|
||||||
boolean paidVersion = Version.isPaidVersion(app);
|
boolean paidVersion = Version.isPaidVersion(app);
|
||||||
|
|
Loading…
Reference in a new issue