From 7bb6a7c1f525a2c38bbdf7c73031e878471f7043 Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 24 Dec 2014 14:44:53 +0100 Subject: [PATCH] Try fix issue of Favorites card not reliably appearing upon app start --- OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java b/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java index 1514cee62c..c51c94ed40 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java @@ -160,6 +160,10 @@ public class MainMenuActivity extends BaseDownloadActivity implements OsmAndLoca }); } + if (getMyApplication().getFavorites().getFavouritePoints().size() > 0) { + getLocationProvider().addCompassListener(this); + getLocationProvider().registerOrUnregisterCompassListener(true); + } } @Override