From 47736239d7b481760de3d586daa989e310092ac0 Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 21 Dec 2014 09:41:31 +0100 Subject: [PATCH] revert test to production --- .../osmand/plus/activities/MainMenuActivity.java | 2 +- .../plus/dashboard/DashFavoritesFragment.java | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java b/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java index d7bbd76b14..ae1d9ca7ab 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java @@ -76,8 +76,8 @@ public class MainMenuActivity extends BaseDownloadActivity implements OsmAndLoca public void onPause() { super.onPause(); getMyApplication().getLocationProvider().pauseAllUpdates(); - getMyApplication().getLocationProvider().removeCompassListener(this); getMyApplication().getLocationProvider().removeLocationListener(this); + getMyApplication().getLocationProvider().removeCompassListener(this); } @Override diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java b/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java index fec55289d7..989fbadc85 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashFavoritesFragment.java @@ -67,15 +67,15 @@ public class DashFavoritesFragment extends DashBaseFragment { @Override public void onResume() { super.onResume(); - //if (getMyApplication().getFavorites().getFavouritePoints().size() > 0) { - // if(!getMyApplication().getSettings().isLastKnownMapLocation()) { + 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); - //} + location = getMyApplication().getLocationProvider().getFirstTimeRunDefaultLocation(); + } else { + location = getLocationProvider().getLastKnownLocation(); + } + updateLocation(location); + } setupFavorites();