test commit 2 to debug GPS-on issue

This commit is contained in:
sonora 2014-12-21 09:45:33 +01:00
parent 47736239d7
commit 47f3140e18

View file

@ -165,12 +165,12 @@ public class MainMenuActivity extends BaseDownloadActivity implements OsmAndLoca
@Override
protected void onResume() {
super.onResume();
if (getMyApplication().getFavorites().getFavouritePoints().size() > 0) {
getLocationProvider().addLocationListener(this);
getLocationProvider().addCompassListener(this);
getLocationProvider().registerOrUnregisterCompassListener(true);
getLocationProvider().resumeAllUpdates();
}
//if (getMyApplication().getFavorites().getFavouritePoints().size() > 0) {
// getLocationProvider().addLocationListener(this);
// getLocationProvider().addCompassListener(this);
// getLocationProvider().registerOrUnregisterCompassListener(true);
// getLocationProvider().resumeAllUpdates();
//}
}
@Override