From 3ee394494cc96aa2c10026103dca64eb2798ccf9 Mon Sep 17 00:00:00 2001 From: Dmitry Donskoy Date: Thu, 20 Dec 2018 13:18:18 +0300 Subject: [PATCH] [android] Fixed review notes --- .../maps/geofence/GeofenceTransitionsIntentService.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/android/src/com/mapswithme/maps/geofence/GeofenceTransitionsIntentService.java b/android/src/com/mapswithme/maps/geofence/GeofenceTransitionsIntentService.java index 206dfa0435..7784132f04 100644 --- a/android/src/com/mapswithme/maps/geofence/GeofenceTransitionsIntentService.java +++ b/android/src/com/mapswithme/maps/geofence/GeofenceTransitionsIntentService.java @@ -37,11 +37,13 @@ public class GeofenceTransitionsIntentService extends JobIntentService || transitionType == Geofence.GEOFENCE_TRANSITION_EXIT) { mMainThreadHandler.post(new GeofencingEventTask(getApplication(), geofencingEvent)); -// LightFramework.nativeLogLocalAdsEvent(1, /* myPlaceLat */, /* myPlaceLon */, /* locationProviderAccuracy */, , , ); +// LightFramework.nativeLogLocalAdsEvent(1, /* myPlaceLat */, /* myPlaceLon */, /* +// locationProviderAccuracy */, , , ); } } - public static void enqueueWork(@NonNull Context context, @NonNull Intent intent) { + public static void enqueueWork(@NonNull Context context, @NonNull Intent intent) + { int id = JobIdMap.getId(GeofenceTransitionsIntentService.class); enqueueWork(context, GeofenceTransitionsIntentService.class, id, intent); } @@ -63,7 +65,8 @@ public class GeofenceTransitionsIntentService extends JobIntentService public void run() { Location lastKnownLocation = LocationHelper.INSTANCE.getLastKnownLocation(); - Location currentLocation = lastKnownLocation == null ? mGeofencingEvent.getTriggeringLocation() + Location currentLocation = lastKnownLocation == null ? mGeofencingEvent + .getTriggeringLocation() : lastKnownLocation; GeofenceRegistry geofenceRegistry = GeofenceRegistryImpl.from(mApplication);