revert test to production

This commit is contained in:
sonora 2014-12-21 09:41:31 +01:00
parent 91875ea5be
commit 47736239d7
2 changed files with 9 additions and 9 deletions

View file

@ -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

View file

@ -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();