Skip to content

Commit 284279b

Browse files
committed
fixing Location makeComplete
1 parent 6e05257 commit 284279b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

NetworkLocation/src/com/google/android/location/provider/NetworkLocationProviderV2.java

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ private void makeComplete(Location location) {
8585
location.setAccuracy(100.0f);
8686
}
8787
if (location.getTime() == 0) location.setTime(System.currentTimeMillis());
88+
if (location.getElapsedRealtimeNanos() == 0) location.setElapsedRealtimeNanos(SystemClock.elapsedRealtimeNanos());
8889
}
8990

9091
@Override

0 commit comments

Comments
 (0)