forked from organicmaps/organicmaps
[android] Timezone hack for initial location.
This commit is contained in:
parent
9505b9b784
commit
0866a04feb
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue