Try fix issue of Favorites card not reliably appearing upon app start

This commit is contained in:
sonora 2014-12-24 14:44:53 +01:00
parent 77ef148db9
commit 7bb6a7c1f5

View file

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