Fix crash

This commit is contained in:
Victor Shcherb 2015-03-10 01:06:18 +01:00
parent 80149ef39d
commit 6c14e8d6b1

View file

@ -156,7 +156,7 @@ public class DashWaypointsFragment extends DashLocationFragment {
return true;
}
});
boolean target = model == getMyApplication().getTargetPointsHelper().getPointToNavigate();
final boolean target = model == getMyApplication().getTargetPointsHelper().getPointToNavigate();
if(SHOW_ALL && getMyApplication().getTargetPointsHelper().getIntermediatePoints().size() > 0) {
final List<TargetPoint> allTargets = getMyApplication().getTargetPointsHelper().getIntermediatePointsWithTarget();
if (model.index > 0 || target) {