[android] Timezone hack for initial location.

This commit is contained in:
Dmitry Kunin 2013-05-20 10:56:20 +03:00 committed by Alex Zolotarev
parent 9505b9b784
commit 0866a04feb

View file

@ -162,7 +162,13 @@ public class LocationService implements LocationListener, SensorEventListener, W
// Pass last known location only in the end of all registerListener
// in case, when we want to disconnect in listener.
if (lastKnownLocation != null)
{
final long currentTime = System.currentTimeMillis();
//mark location with current time
lastKnownLocation.setTime(currentTime);
emitLocation(lastKnownLocation, System.currentTimeMillis());
}
}
if (m_isGPSOff)