produces NPE in line 101, so it looks like points.size()being 0 is the underlying problem for the fragment not reliably appearning on the dashboard

This commit is contained in:
sonora 2014-12-24 14:36:12 +01:00
parent a19c84c931
commit 77ef148db9

View file

@ -58,18 +58,6 @@ public class DashFavoritesFragment extends DashBaseFragment {
activity.startActivity(favorites);
}
});
if (getMyApplication().getFavorites().getFavouritePoints().size() > 0) {
if(!getMyApplication().getSettings().isLastKnownMapLocation()) {
// show first time when application ran
location = getMyApplication().getLocationProvider().getFirstTimeRunDefaultLocation();
} else {
location = getLocationProvider().getLastKnownLocation();
}
updateLocation(location);
}
setupFavorites();
return view;
}