From ed7333a94be6a09b42c1dd36c25a05677a4588b8 Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 2 Jan 2015 17:56:59 +0100 Subject: [PATCH] fix build for now, but code needs refactoring to use map center location --- .../src/net/osmand/plus/dashboard/DashFavoritesFragment.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java b/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java index 4235adc70f..0cb69baaca 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java @@ -71,10 +71,7 @@ public class DashFavoritesFragment extends DashBaseFragment { } else { location = getLocationProvider().getLastKnownLocation(); } - //Use map center as origin if no position known - if (location == null) { - location = getMyApplication().getSettings().getLastKnownMapLocation(); - } + //TODO: Sufficient to use LatLon map center as origin if no position known! updateLocation(location); } setupFavorites();