try without querying favorites.size() > 0
This commit is contained in:
parent
7bb6a7c1f5
commit
58827eae19
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue