lastLocation in LocationTracker is never assigned
Created by: agilob
But is checked for null value, it always has null value so there is unknown bug in locationtracker
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
@Override
public void onLocationChanged(Location loc) {
if (lastLocation != null &&
lastLocation.getLongitude() == loc.getLongitude() &&
lastLocation.getLatitude() == loc.getLatitude()) {
// same location as before, so ignore
return;
}
lastLocationTime = System.currentTimeMillis();
extLocationListener.onLocationChanged(loc);
}