diff --git a/android/src/com/mapswithme/maps/geofence/GeofenceRegistryImpl.java b/android/src/com/mapswithme/maps/geofence/GeofenceRegistryImpl.java index 6c02822345..b573dee7a4 100644 --- a/android/src/com/mapswithme/maps/geofence/GeofenceRegistryImpl.java +++ b/android/src/com/mapswithme/maps/geofence/GeofenceRegistryImpl.java @@ -119,13 +119,15 @@ public class GeofenceRegistryImpl implements GeofenceRegistry } @NonNull - private PendingIntent makeGeofencePendingIntent() { + private PendingIntent makeGeofencePendingIntent() + { Intent intent = new Intent(mApplication, GeofenceReceiver.class); return PendingIntent.getBroadcast(mApplication, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); } @NonNull - private GeofencingRequest makeGeofencingRequest() { + private GeofencingRequest makeGeofencingRequest() + { GeofencingRequest.Builder builder = new GeofencingRequest.Builder(); return builder.setInitialTrigger(GeofencingRequest.INITIAL_TRIGGER_DWELL) .addGeofences(collectGeofences()) diff --git a/android/src/com/mapswithme/maps/geofence/GeofenceTransitionsIntentService.java b/android/src/com/mapswithme/maps/geofence/GeofenceTransitionsIntentService.java index 7784132f04..feb7ae9c69 100644 --- a/android/src/com/mapswithme/maps/geofence/GeofenceTransitionsIntentService.java +++ b/android/src/com/mapswithme/maps/geofence/GeofenceTransitionsIntentService.java @@ -31,7 +31,11 @@ public class GeofenceTransitionsIntentService extends JobIntentService { GeofencingEvent geofencingEvent = GeofencingEvent.fromIntent(intent); if (geofencingEvent.hasError()) + { + String errorMessage = "Error code = " + geofencingEvent.getErrorCode(); + LOG.e(TAG, errorMessage); return; + } int transitionType = geofencingEvent.getGeofenceTransition(); if (transitionType == Geofence.GEOFENCE_TRANSITION_ENTER || transitionType == Geofence.GEOFENCE_TRANSITION_EXIT)