revert test to production
This commit is contained in:
parent
91875ea5be
commit
47736239d7
2 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue