Now correctly logging time.
This commit is contained in:
parent
ee8fdc90e6
commit
de1a6c4d7e
|
|
@ -104,6 +104,8 @@ public class LocationLoggingService extends Service implements LocationListener
|
||||||
|
|
||||||
locationEntity.latitude = location.getLatitude();
|
locationEntity.latitude = location.getLatitude();
|
||||||
locationEntity.longitude = location.getLongitude();
|
locationEntity.longitude = location.getLongitude();
|
||||||
|
locationEntity.unixTime = location.getTime();
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||||
locationEntity.isMock = location.isMock();
|
locationEntity.isMock = location.isMock();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue