Try fix issue of Favorites card not reliably appearing upon app start
This commit is contained in:
parent
77ef148db9
commit
7bb6a7c1f5
1 changed files with 4 additions and 0 deletions
|
@ -160,6 +160,10 @@ public class MainMenuActivity extends BaseDownloadActivity implements OsmAndLoca
|
|||
|
||||
});
|
||||
}
|
||||
if (getMyApplication().getFavorites().getFavouritePoints().size() > 0) {
|
||||
getLocationProvider().addCompassListener(this);
|
||||
getLocationProvider().registerOrUnregisterCompassListener(true);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue