[android] Fixed review notes

This commit is contained in:
Dmitry Donskoy 2018-12-20 13:18:18 +03:00 committed by Aleksandr Zatsepin
parent 4b0d91a3ad
commit 3ee394494c

View file

@ -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);