try without querying favorites.size() > 0

This commit is contained in:
sonora 2014-12-24 15:01:56 +01:00
parent 7bb6a7c1f5
commit 58827eae19

View file

@ -160,10 +160,8 @@ public class MainMenuActivity extends BaseDownloadActivity implements OsmAndLoca
});
}
if (getMyApplication().getFavorites().getFavouritePoints().size() > 0) {
getLocationProvider().addCompassListener(this);
getLocationProvider().registerOrUnregisterCompassListener(true);
}
getLocationProvider().addCompassListener(this);
getLocationProvider().registerOrUnregisterCompassListener(true);
}
@Override