forked from organicmaps/organicmaps
[android] added ignore geofence registration when local ads object absent
This commit is contained in:
parent
5be2163312
commit
f217ae4e18
1 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,8 @@ public class GeofenceRegistryImpl implements GeofenceRegistry
|
|||
List<GeoFenceFeature> features = LightFramework.getLocalAdsFeatures(
|
||||
location.getLat(), location.getLon(), location.getRadiusInMeters()/* from system location provider accuracy */, GEOFENCE_MAX_COUNT);
|
||||
|
||||
if (features.isEmpty())
|
||||
return;
|
||||
for (GeoFenceFeature each : features)
|
||||
{
|
||||
Geofence geofence = new Geofence.Builder()
|
||||
|
|
Loading…
Add table
Reference in a new issue